- Added a changes column explicitly listing all of the changes -- This makes it more in line with the other views now
32 lines
1.7 KiB
Plaintext
32 lines
1.7 KiB
Plaintext
<div id="c-post-versions">
|
|
<div id="a-index">
|
|
<% if listing_type(:post_id) == :revert && @post_versions.present? %>
|
|
<h1>Tag History: <%= link_to "Post ##{params.dig(:search, :post_id)}", @post_versions[0].post %></h1>
|
|
<% else %>
|
|
<h1>Tag History</h1>
|
|
<% end %>
|
|
|
|
<%= search_form_for(post_versions_path, classes: "inline-form") do |f| %>
|
|
<%= f.input :post_id, label: "Post", input_html: { value: params.dig(:search, :post_id) } %>
|
|
<%= f.input :updater_name, label: "Updater", input_html: { "data-autocomplete": "user", value: params.dig(:search, :updater_name) } %>
|
|
<%= f.input :added_tags_include_all, label: "Added Tags", input_html: { "data-autocomplete": "tag-query", value: params.dig(:search, :added_tags_include_all) } %>
|
|
<%= f.input :removed_tags_include_all, label: "Removed Tags", input_html: { "data-autocomplete": "tag-query", value: params.dig(:search, :removed_tags_include_all) } %>
|
|
<%= f.input :changed_tags, label: "Changed Tags", input_html: { "data-autocomplete": "tag-query", value: params.dig(:search, :changed_tags) } %>
|
|
<%= f.submit "Search" %>
|
|
<%= link_to "Advanced", search_post_versions_path, class: "advanced-search-link" %>
|
|
<% end %>
|
|
|
|
<%= render "posts/partials/common/inline_blacklist" %>
|
|
<p class="fineprint">Recent updates may not have been processed yet. The most recently processed version was <%= time_ago_in_words_tagged(PostArchive.maximum(:updated_at)) %>.</p>
|
|
|
|
<% if @post_versions.length == 0 %>
|
|
<%= render "post_sets/blank" %>
|
|
<% else %>
|
|
<%= render "listing" %>
|
|
<%= numbered_paginator(@post_versions) %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|