Files
danbooru/app/views/bulk_update_requests/index.html.erb
r888888888 7b97ca192c fixes #2190
2014-06-12 21:16:21 -07:00

40 lines
1.1 KiB
Plaintext

<div class="bans">
<div class="index">
<h1>Bulk Update Requests</h1>
<table class="striped" width="100%">
<thead>
<tr>
<th>Creator</th>
<th>Script</th>
<th>Status</th>
<th></th>
</tr>
</thead>
<tbody>
<% @bulk_update_requests.each do |request| %>
<tr id="request-<%= request.id %>">
<td><%= link_to_user(request.user) %></td>
<td><%= request.script %></td>
<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 %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
<%= numbered_paginator(@bulk_update_requests) %>
</div>
</div>
<%= render "secondary_links" %>
<% content_for(:page_title) do %>
Bulk Update Requests - <%= Danbooru.config.app_name %>
<% end %>