2014-09-28 17:14:09 +08:00
|
|
|
<div style="margin-left: 20px;">
|
|
|
|
|
|
|
|
<% if ( !(User.current.member_of? @project) && User.current.login?) %> <!--added by linchun-->
|
|
|
|
<span class="icon-fav icon"></span><%= watcher_link(@project, User.current) %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<!--添加项目申请-->
|
|
|
|
<div style="margin-left: 20px;">
|
|
|
|
<% if ( !(User.current.member_of? @project) && User.current.login?) %>
|
|
|
|
<span class="icon-fav icon"></span>
|
|
|
|
<%= applied_link(@project, User.current) %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--添加退出项目-->
|
|
|
|
<div style="margin-left: 20px;">
|
|
|
|
<% 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") %>
|
|
|
|
<%= exit_project_link(@project) %>
|
|
|
|
<% end %>
|
2014-08-08 16:43:34 +08:00
|
|
|
</div>
|