diff --git a/app/views/comments/_quick_search.html.erb b/app/views/comments/_quick_search.html.erb new file mode 100644 index 000000000..07dbb3233 --- /dev/null +++ b/app/views/comments/_quick_search.html.erb @@ -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 %> diff --git a/app/views/comments/_secondary_links.html.erb b/app/views/comments/_secondary_links.html.erb index 9abf9678b..bae582602 100644 --- a/app/views/comments/_secondary_links.html.erb +++ b/app/views/comments/_secondary_links.html.erb @@ -1,5 +1,6 @@ <% content_for(:secondary_links) do %> +
  • <%= render "quick_search" %>
  • <%= link_to "Listing", comments_path(:group_by => "post") %>
  • <%= link_to "Search", search_comments_path %>
  • <%= link_to "Help", wiki_pages_path(:title => "help:comments") %>
  • diff --git a/app/views/notes/_quick_search.html.erb b/app/views/notes/_quick_search.html.erb new file mode 100644 index 000000000..7fee86be0 --- /dev/null +++ b/app/views/notes/_quick_search.html.erb @@ -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 %> diff --git a/app/views/notes/_secondary_links.html.erb b/app/views/notes/_secondary_links.html.erb index 2062406d5..8d2b12449 100644 --- a/app/views/notes/_secondary_links.html.erb +++ b/app/views/notes/_secondary_links.html.erb @@ -1,5 +1,6 @@ <% content_for(:secondary_links) do %> +
  • <%= render "quick_search" %>
  • <%= link_to "Listing", notes_path(:group_by => "post") %>
  • <%= link_to "Search", search_notes_path %>
  • <%= link_to "History", note_versions_path %>
  • diff --git a/app/views/users/_quick_search.html.erb b/app/views/users/_quick_search.html.erb new file mode 100644 index 000000000..5800c37b4 --- /dev/null +++ b/app/views/users/_quick_search.html.erb @@ -0,0 +1,3 @@ +<%= form_tag(users_path, :method => :get) do %> + <%= text_field "search", "name_matches", :placeholder => "Search users" %> +<% end %> diff --git a/app/views/users/_secondary_links.html.erb b/app/views/users/_secondary_links.html.erb index f7a9edbcc..edcc34e6c 100644 --- a/app/views/users/_secondary_links.html.erb +++ b/app/views/users/_secondary_links.html.erb @@ -1,5 +1,6 @@ <% content_for(:secondary_links) do %> +
  • <%= render "quick_search" %>
  • <%= link_to "Listing", users_path %>
  • <%= link_to "Search", search_users_path %>