/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:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user