* Add ability to search /post_versions by added tags, removed tags, or changed tags (added or removed). * Add 'History' link to the sidebar of the /posts index. This is a shortcut for a /post_versions search of the current tag.
25 lines
929 B
Plaintext
25 lines
929 B
Plaintext
<div id="c-post-versions">
|
|
<div id="a-search">
|
|
<h1>Search Changes</h1>
|
|
|
|
<%= search_form_for(post_versions_path) do |f| %>
|
|
<%= f.input :updated_at, label: "Date" %>
|
|
<%= f.input :updater_name, label: "Updater", input_html: { "data-autocomplete": "user" } %>
|
|
<%= f.input :changed_tags_include_all, label: "Changed tags" %>
|
|
<%= f.input :added_tags_include_all, label: "Added tags" %>
|
|
<%= f.input :removed_tags_include_all, label: "Removed tags" %>
|
|
<%= f.input :post_id %>
|
|
<%= f.input :parent_id %>
|
|
<%= f.input :rating %>
|
|
<%= f.input :source_ilike, label: "Source", hint: "Use * for wildcard" %>
|
|
<%= f.input :version %>
|
|
<%= f.input :rating_changed, as: :select %>
|
|
<%= f.input :parent_changed, as: :select %>
|
|
<%= f.input :source_changed, as: :select %>
|
|
<%= f.submit "Search" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|