aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-11-07 14:16:42 +0000
committerLouise Crow <louise.crow@gmail.com>2013-11-07 14:16:42 +0000
commitb80dbedbf388b0f7cb3b3a44c96e292242e6fdf3 (patch)
tree5c46260380b054c36fc6650341f97dfdc97eebcb
parent0fe1b07e146802429894d1e970173b4309c648cd (diff)
Don't show sorting links when there are no results.
-rw-r--r--app/views/general/search.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/general/search.html.erb b/app/views/general/search.html.erb
index 8cde633e3..59b4cc5d5 100644
--- a/app/views/general/search.html.erb
+++ b/app/views/general/search.html.erb
@@ -116,7 +116,7 @@
<% end # if @advanced %>
- <% if !@query.nil? %>
+ <% if !@query.nil? && @total_hits > 0 %>
<p id="search_controls">
<%=link_to_unless @sortby == 'relevant', _("Show most relevant results first"), search_path([params[:query], @variety_postfix, 'relevant'], params) %>
|