<% if !User.current.member_of?(@project) %> <% if User.current.login? && !User.current.admin %>
  • <%= watcher_link_for_project(@project, User.current) %> <%= link_to "#{@project.watcher_users.count}", {:controller=>"projects", :action=>"watcherlist", :id => @project.id},:id=>"fans_num", :class => 'pro_new_topbtn fl' %>
  • <% if AppliedProject.where(:user_id => User.current, :project_id => @project_id).first.nil? %> <%= join_in_project_link(@project, User.current) %> <% else %> 等待审批 <% end %> <%= link_to "#{Member.where(:project_id => @project.id).count}", project_member_path(@project), :class => 'pro_new_topbtn fl', :title => "项目成员" %>
  • <% end %> <% else %> <% my_stores = Member.where(:project_id => @project.id, :is_collect => 1).count %>
  • <%= store_project_link(@project.id, User.current.id) %> <%= link_to my_stores, enshrine_project_path(@project), :class => "pro_new_topbtn fl" %>
  • <% if User.current.id != @project.user_id %> <%= exit_project_link(@project) %> <%= link_to "#{Member.where(:project_id => @project.id).count}", project_member_path(@project), :class => 'pro_new_topbtn fl', :title => "项目成员" %> <% end %> <% end %>