add more quick searches

comments, notes, and users
This commit is contained in:
Toks
2013-03-30 15:25:09 -04:00
parent 445e677956
commit 3bfb05d795
6 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<%= form_tag(comments_path, :method => :get) do %>
<%= hidden_field_tag "group_by", "comment" %>
<%= text_field "search", "body_matches", :placeholder => "Search comments" %>
<% end %>

View File

@@ -1,5 +1,6 @@
<% content_for(:secondary_links) do %>
<menu>
<li><%= render "quick_search" %></li>
<li><%= link_to "Listing", comments_path(:group_by => "post") %></li>
<li><%= link_to "Search", search_comments_path %></li>
<li><%= link_to "Help", wiki_pages_path(:title => "help:comments") %></li>

View File

@@ -0,0 +1,4 @@
<%= form_tag(notes_path, :method => :get) do %>
<%= hidden_field_tag "group_by", "note" %>
<%= text_field "search", "body_matches", :placeholder => "Search notes" %>
<% end %>

View File

@@ -1,5 +1,6 @@
<% content_for(:secondary_links) do %>
<menu>
<li><%= render "quick_search" %></li>
<li><%= link_to "Listing", notes_path(:group_by => "post") %></li>
<li><%= link_to "Search", search_notes_path %></li>
<li><%= link_to "History", note_versions_path %></li>

View File

@@ -0,0 +1,3 @@
<%= form_tag(users_path, :method => :get) do %>
<%= text_field "search", "name_matches", :placeholder => "Search users" %>
<% end %>

View File

@@ -1,5 +1,6 @@
<% content_for(:secondary_links) do %>
<menu>
<li><%= render "quick_search" %>
<li><%= link_to "Listing", users_path %></li>
<li><%= link_to "Search", search_users_path %></li>