comments: put search form on same page as search results.
* Remove the /comment/search page. Instead put the comment search form on the same page as the search results, so you don't have to go back and forth to update your search. * Add an "Edited?" search option, for finding comments that have been edited. * Add options for sorting by oldest comments and lowest scoring comments.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<%= quick_search_form_for(:body_matches, comments_path, "comments") %>
|
||||
<%= subnav_link_to "Listing", comments_path(:group_by => "post") %>
|
||||
<%= subnav_link_to "Search", search_comments_path %>
|
||||
<%= subnav_link_to "Search", comments_path(group_by: "comment") %>
|
||||
<% if policy(CommentVote).can_see_votes? %>
|
||||
<%= subnav_link_to "Votes", comment_votes_path %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user