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
|
|
|
<!--退出项目-->
|
|
|
|
<% if ((User.current.member_of? @project) &&
|
|
|
|
User.current.login? &&
|
|
|
|
Member.where(:user_id => User.current.id, :project_id=>@project.id).first.roles.first.to_s != "Manager") %>
|
2014-09-28 17:14:09 +08:00
|
|
|
<%= exit_project_link(@project) %>
|
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
</div>
|