16 lines
967 B
Plaintext
16 lines
967 B
Plaintext
<div class="pr_info_join fl">
|
|
<!--关注项目-->
|
|
<% if ( !(User.current.member_of? @project) && User.current.login?) %> <!--added by linchun-->
|
|
<span><%= watcher_link_for_project(@project, User.current) %></span>
|
|
<% end %>
|
|
<!--加入项目 -->
|
|
<% if ( !(User.current.member_of? @project) && User.current.login?) %>
|
|
<%= join_in_project_link(@project, User.current) %>
|
|
<% end %>
|
|
<!--退出项目-->
|
|
<% if ((User.current.member_of? @project) && User.current.login? && User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project)) %>
|
|
<%= link_to "<span class='pr_setting'></span>#{l(:button_configure)}".html_safe, settings_project_path(@project), :class => "pr_join_a" %>
|
|
<%= link_to "<span class='pr_friend'></span>#{l(:label_friend_organization)}".html_safe,"javascript:void(0)" ,:onClick => "show_window();", :class => "pr_join_a",:id => "setting_project_type"%>
|
|
<% end %>
|
|
</div>
|