From 3de2ed452eab4551ff907ea7bc9ce2d94fa19edf Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 23 Apr 2013 15:32:07 -0400 Subject: [PATCH] move artist search to index, fixes #636 --- .../stylesheets/specific/artists.css.scss | 4 --- app/views/artists/_search.html.erb | 28 +++++++++++++++++++ app/views/artists/_secondary_links.html.erb | 1 - app/views/artists/index.html.erb | 3 +- app/views/artists/search.html.erb | 27 ------------------ config/routes.rb | 1 - 6 files changed, 29 insertions(+), 35 deletions(-) create mode 100644 app/views/artists/_search.html.erb delete mode 100644 app/views/artists/search.html.erb diff --git a/app/assets/stylesheets/specific/artists.css.scss b/app/assets/stylesheets/specific/artists.css.scss index f2d91e5b9..30cc10e6b 100644 --- a/app/assets/stylesheets/specific/artists.css.scss +++ b/app/assets/stylesheets/specific/artists.css.scss @@ -31,8 +31,4 @@ div#c-artists { margin: 0; } } - - .hint { - display: block; - } } diff --git a/app/views/artists/_search.html.erb b/app/views/artists/_search.html.erb new file mode 100644 index 000000000..dc47210f8 --- /dev/null +++ b/app/views/artists/_search.html.erb @@ -0,0 +1,28 @@ + + + <%= form_tag(artists_path, :method => :get, :class => "simple_form") do %> + + + + + + + + + + + + <% end %> + + \ No newline at end of file diff --git a/app/views/artists/_secondary_links.html.erb b/app/views/artists/_secondary_links.html.erb index 6721088d7..99fe19d41 100644 --- a/app/views/artists/_secondary_links.html.erb +++ b/app/views/artists/_secondary_links.html.erb @@ -3,7 +3,6 @@
  • <%= render "artists/quick_search" %>
  • <%= link_to "Listing", artists_path %>
  • <%= link_to "Banned", banned_artists_path %>
  • -
  • <%= link_to "Search", search_artists_path %>
  • <%= link_to "New", new_artist_path %>
  • <%= link_to "Recent changes", artist_versions_path %>
  • <% if @artist && !@artist.new_record? %> diff --git a/app/views/artists/index.html.erb b/app/views/artists/index.html.erb index 5e37af882..b81ccab4d 100644 --- a/app/views/artists/index.html.erb +++ b/app/views/artists/index.html.erb @@ -1,7 +1,6 @@
    -

    Artists

    - + <%= render "search" %> diff --git a/app/views/artists/search.html.erb b/app/views/artists/search.html.erb deleted file mode 100644 index fb218ac1c..000000000 --- a/app/views/artists/search.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -
    - -
    - -<%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Search Artists - <%= Danbooru.config.app_name %> -<% end %> diff --git a/config/routes.rb b/config/routes.rb index 758a0ff9a..aec71d7e9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -60,7 +60,6 @@ Danbooru::Application.routes.draw do end collection do get :show_or_new - get :search get :banned end end