2015-03-06 14:55:21 +08:00
|
|
|
<div class="pr_info_join fl">
|
|
|
|
<!--关注项目-->
|
2014-09-28 17:14:09 +08:00
|
|
|
<% if ( !(User.current.member_of? @project) && User.current.login?) %> <!--added by linchun-->
|
2015-03-20 15:02:20 +08:00
|
|
|
<span><%= watcher_link_for_project(@project, User.current) %></span>
|
2014-09-28 17:14:09 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
<!--加入项目 -->
|
2014-09-28 17:14:09 +08:00
|
|
|
<% if ( !(User.current.member_of? @project) && User.current.login?) %>
|
2015-03-20 15:02:20 +08:00
|
|
|
<%= join_in_project_link(@project, User.current) %>
|
2014-09-28 17:14:09 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
<!--退出项目-->
|
2015-04-09 19:18:04 +08:00
|
|
|
<% 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" %>
|
2015-04-17 10:13:47 +08:00
|
|
|
<%= link_to "<span class='#{get_project_type_css(@project_type_new)}'></span>#{text}".html_safe,"javascript:void(0)" ,:onClick => "show_window();", :class => "pr_join_a",:id => "setting_project_type"%>
|
2014-09-28 17:14:09 +08:00
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
</div>
|