<% if !User.current.member_of?(@project) && User.current.login? && !User.current.admin %> <%= watcher_link_for_project(@project, User.current) %> <% if AppliedProject.where(:user_id => User.current, :project_id => @project_id).first.nil? %> <%= join_in_project_link(@project, User.current) %> <% else %> 等待审批 <% end %> <% end %>