diff --git a/app/views/pools/_search.html.erb b/app/views/pools/_search.html.erb new file mode 100644 index 000000000..5e0a29dc1 --- /dev/null +++ b/app/views/pools/_search.html.erb @@ -0,0 +1,45 @@ + + + <%= form_tag pools_path, :method => :get, :class => "simple_form" do %> + + + + + + + + + + + + + + + + + + + + + + + + <% end %> + + \ No newline at end of file diff --git a/app/views/pools/_secondary_links.html.erb b/app/views/pools/_secondary_links.html.erb index 03fd8b8c5..889d390ba 100644 --- a/app/views/pools/_secondary_links.html.erb +++ b/app/views/pools/_secondary_links.html.erb @@ -2,7 +2,6 @@
  • <%= render "pools/quick_search" %>
  • <%= link_to "Listing", pools_path %>
  • -
  • <%= link_to "Search", search_pools_path %>
  • <%= link_to "New", new_pool_path %>
  • <% if CurrentUser.is_member? && @pool && !@pool.new_record? %>
  • |
  • diff --git a/app/views/pools/index.html.erb b/app/views/pools/index.html.erb index 68c27ed12..8ff8204b4 100644 --- a/app/views/pools/index.html.erb +++ b/app/views/pools/index.html.erb @@ -1,5 +1,6 @@
    + <%= render "search" %> diff --git a/app/views/pools/search.html.erb b/app/views/pools/search.html.erb deleted file mode 100644 index 5afc344f7..000000000 --- a/app/views/pools/search.html.erb +++ /dev/null @@ -1,22 +0,0 @@ -
    - -
    - -<%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Search Pools - <%= Danbooru.config.app_name %> -<% end %> diff --git a/config/routes.rb b/config/routes.rb index 4e8cd6180..758a0ff9a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -122,9 +122,6 @@ Danbooru::Application.routes.draw do end resources :note_versions, :only => [:index] resources :pools do - collection do - get :search - end member do put :revert post :undelete