This commit is contained in:
r888888888
2014-06-17 18:06:28 -07:00
parent 500f7a7812
commit 4ab6a2417f
10 changed files with 182 additions and 93 deletions

View File

@@ -21,8 +21,11 @@
<td><%= request.status %></td>
<td>
<% if CurrentUser.is_moderator? && request.status == "pending" %>
<%= link_to "Approve", bulk_update_request_path(request, :status => "approved"), :method => :put %>
| <%= link_to "Reject", bulk_update_request_path(request, :status => "rejected"), :method => :put %>
<%= link_to "Approve", approve_bulk_update_request_path(request), :method => :post %> |
<% end %>
<% if request.editable?(CurrentUser.user) %>
<%= link_to "Delete", bulk_update_request_path(request), :method => :delete %> |
<%= link_to "Edit", edit_bulk_update_request_path(request) %>
<% end %>
</td>
</tr>