<% if ( !(User.current.member_of? @project) && User.current.login?) %> <%= watcher_link(@project, User.current) %> <% end %> <% if ( !(User.current.member_of? @project) && User.current.login?) %> <%= applied_link(@project, User.current) %> <% end %> <% 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 %>