socialforge/app/views/projects/_applied_status.html.erb

11 lines
439 B
Plaintext

<% if !User.current.member_of?(@project) && User.current.login? && !User.current.admin %>
<span><%= watcher_link_for_project(@project, User.current) %></span>
<!--加入项目 -->
<% if AppliedProject.where(:user_id => User.current, :project_id => @project_id).first.nil? %>
<%= join_in_project_link(@project, User.current) %>
<% else %>
<a class="sy_btn_blue mr5">等待审批</a>
<% end %>
<% end %>