implement post version search report in danbooru (probably broken)

This commit is contained in:
r888888888
2016-09-06 18:02:58 -07:00
parent 1488f82b32
commit 310538dd71
6 changed files with 53 additions and 49 deletions

View File

@@ -2,7 +2,7 @@
<div id="a-post-versions">
<h1>Post Changes Report</h1>
<p>You can search all post changes to find when and where a tag was added or removed. Because these queries can take a long time to generate the results will be emailed to you. Only the 1,000 most recent changes will be returned.</p>
<p>You can search all post changes to find when and where a tag was added or removed. Only the 1,000 most recent changes will be returned.</p>
<%= form_tag(reports_post_versions_create_path, :method => :post, :class => "simple_form") do %>
<div class="input">
@@ -10,12 +10,6 @@
<%= text_field_tag "tag" %>
<%= select_tag "type", options_for_select(%w(added removed)) %>
</div>
<div class="input">
<label for="Email">Email</label>
<%= text_field_tag "email", CurrentUser.user.email %>
</div>
<%= submit_tag "Submit", :data => { :disable_with => "Submitting..." } %>
<% end %>

View File

@@ -0,0 +1,14 @@
<div id="c-reports">
<div id="a-post-versions">
<h1>Post Changes Report</h1>
<p>Only the 1,000 most recent changes are displayed.</p>
<%= render "post_versions/listing", :post_versions => @report.post_versions %>
</div>
</div>
<% content_for(:page_title) do %>
Post Changes Report - <%= Danbooru.config.app_name %>
<% end %>