BURs: add edit and reject links to the BUR show page (#3824).

This commit is contained in:
evazion
2019-01-15 21:18:00 -06:00
parent a284d3fb4a
commit 6b167d6055
5 changed files with 26 additions and 15 deletions

View File

@@ -10,15 +10,13 @@
<li><strong>Date</strong> <%= @bulk_update_request.created_at %></li>
<li><strong>Status</strong>: <%= @bulk_update_request.status %></li>
<li><strong title="How many posts will be affected">Estimate</strong>: <%= @bulk_update_request.estimate_update_count %></li>
<% if CurrentUser.is_admin? && @bulk_update_request.is_pending? %>
<li><strong>Commands</strong> <%= link_to "Approve", approve_bulk_update_request_path(@bulk_update_request), :method => :post %></li>
<% end %>
</ul>
<div style="margin: 1em 0;">
<h2>Script</h2>
<pre><%= format_text @bulk_update_request.script_with_links %></pre>
<%= render "bur_edit_links", bur: @bulk_update_request %>
</div>
</div>
</div>
@@ -27,4 +25,4 @@
<% content_for(:page_title) do %>
Bulk Update Request - <%= Danbooru.config.app_name %>
<% end %>
<% end %>