diff --git a/app/assets/stylesheets/search.css b/app/assets/stylesheets/search.css index 5691ac5e5..32dec66b3 100644 --- a/app/assets/stylesheets/search.css +++ b/app/assets/stylesheets/search.css @@ -129,4 +129,9 @@ summary { padding-inline: 0; } } + .search-perma--empty { + .search { + display: none; + } + } } diff --git a/app/views/searches/show.html.erb b/app/views/searches/show.html.erb index 776ab9d38..197eebab2 100644 --- a/app/views/searches/show.html.erb +++ b/app/views/searches/show.html.erb @@ -1,4 +1,4 @@ -<% @page_title = params.has_key?(:q) ? "Search results for \"#{params[:q]}\"" : "Search" %> +<% @page_title = !params[:q].blank? ? "Search results for \"#{params[:q]}\"" : "Search" %> <% content_for :header do %>