aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/general/search.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/general/search.html.erb')
-rw-r--r--app/views/general/search.html.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/general/search.html.erb b/app/views/general/search.html.erb
index d526a93c0..be8f2ed86 100644
--- a/app/views/general/search.html.erb
+++ b/app/views/general/search.html.erb
@@ -137,6 +137,9 @@
<div style="clear:both;"></div>
<% if @total_hits == 0 %>
<h2><%=@title %></h2>
+ <% if @spelling_correction %>
+ <p id="did_you_mean"><%= _('Did you mean: {{correction}}', :correction => search_link(@spelling_correction)) %></p>
+ <% end %>
<% end %>
<% if not @query.nil? %>
@@ -156,9 +159,6 @@
<%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
<% elsif @bodies && !@query.nil? && @xapian_bodies.results.size == 0 && @page == 1 %>
- <% if @spelling_correction %>
- <p id="did_you_mean"><%= _('Did you mean: {{correction}}', :correction => search_link(@spelling_correction)) %></p>
- <% end %>
<p><%= raw(_('<a href="{{browse_url}}">Browse all</a> or <a href="{{add_url}}">ask us to add one</a>.', :browse_url => list_public_bodies_default_path.html_safe, :add_url => (help_requesting_path + '#missing_body').html_safe)) %></p>
<% end %>
</div>