socialforge/app/views/users/_user_message_applide_actio...

15 lines
955 B
Plaintext
Raw Normal View History

<% ma = ma.nil? ? @applied_message : ma %>
2016-07-29 14:49:37 +08:00
<% if allow_to_show(ma) %>
2016-12-12 10:55:19 +08:00
<%= link_to "同意", allow_to_join_project_project_memberships_path(:project_id => ma.project_id, :applied_message_id => ma.id),
:remote => true, :method => :post, :class => "link-blue", :style => "font-size: 14px;" %> |
<%= link_to "拒绝", refused_allow_to_join_project_project_memberships_path(:project_id => ma.project_id, :applied_message_id => ma.id),
:remote => true, :method => :get, :class => "link-blue",:style => "font-size: 14px;" %>
2016-07-29 14:49:37 +08:00
<% elsif ma.status == 4 %>
2016-12-12 10:55:19 +08:00
<span class="fontGrey3" style="font-size:14px">被拒绝</span>
2016-07-29 14:49:37 +08:00
<% elsif ma.status == 5 %>
2016-12-12 10:55:19 +08:00
<span class="fontGrey3" style="font-size:14px">您已拒绝</span>
2016-07-29 14:49:37 +08:00
<% elsif ma.status == 6 %>
2016-12-12 10:55:19 +08:00
<span class="fontGrey3" style="font-size:14px">已通过</span>
2016-07-29 14:49:37 +08:00
<% elsif ma.status == 7 %>
2016-12-12 10:55:19 +08:00
<span class="fontGrey3" style="font-size:14px">您已同意</span>
2016-07-29 14:49:37 +08:00
<% end %>