<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 %>
</div>