/post_versions: add search form, tweak layout.

* Add search form above table.
* Move thumbnail to left of table when viewing history of single post.
* Remove unrelated links from subnav menu.
* Fix bugs with changed_tags search.
This commit is contained in:
evazion
2019-09-28 23:16:50 -05:00
parent e3b49a2a6d
commit dade1e67b0
6 changed files with 30 additions and 11 deletions

View File

@@ -1,10 +1,7 @@
<% content_for(:secondary_links) do %>
<%= quick_search_form_for(:changed_tags, post_versions_path, "versions", autocomplete: "tag-query") %>
<%= subnav_link_to "Listing", posts_path %>
<%= subnav_link_to "Upload", new_upload_path %>
<%= quick_search_form_for(:changed_tags, post_versions_path, "by tags", autocomplete: "tag-query") %>
<%= subnav_link_to "Listing", post_versions_path %>
<%= subnav_link_to "Search", search_post_versions_path %>
<%= subnav_link_to "Changes", post_versions_path %>
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:posts") %>
<% if params[:action] == "index" %>
| <%= subnav_link_to "Undo selected", "" %>
<% end %>