Files
danbooru/app/views/bulk_update_requests/index.html.erb
Toks 76f31bd6b5 Bulk reqs: add line breaks
Scripts longer than 1 line are completely unreadable without line breaks
2014-07-31 21:19:43 -04:00

45 lines
1.5 KiB
Plaintext

<div class="bans">
<div class="index">
<h1>Bulk Update Requests</h1>
<table class="striped" width="100%">
<thead>
<tr>
<th>Creator</th>
<th>Forum</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><%= link_to(request.forum_topic_id, forum_topic_path(request.forum_topic_id)) %></td>
<td><%= script_with_line_breaks(request.script) %></td>
<td><%= request.status %></td>
<td>
<% if CurrentUser.is_moderator? && request.status == "pending" %>
<%= 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, :data => {:confirm => "Are you sure you want to delete this bulk update request?"} %> |
<%= link_to "Edit", edit_bulk_update_request_path(request) %>
<% 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 %>