views: refactor quick search forms.
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
<%= form_tag(comments_path, :method => :get) do %>
|
||||
<%= hidden_field_tag "group_by", "comment" %>
|
||||
<%= text_field "search", "body_matches", :id => "quick_search_body_matches", :placeholder => "Search comments" %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu>
|
||||
<li><%= render "comments/quick_search" %></li>
|
||||
<%= 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 "Help", wiki_pages_path(:title => "help:comments") %>
|
||||
|
||||
Reference in New Issue
Block a user