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-21 16:35:51 +08:00
|
|
|
<% if User.current.admin? || User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project) %>
|
2015-04-09 19:18:04 +08:00
|
|
|
<%= link_to "<span class='pr_setting'></span>#{l(:button_configure)}".html_safe, settings_project_path(@project), :class => "pr_join_a" %>
|
2015-04-22 13:34:57 +08:00
|
|
|
<%= link_to "<span class='#{typeclass}'></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>
|