diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-07 14:08:35 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-11-07 14:09:15 +0000 |
commit | b2a2757e12e8eeda174da362a6acff6e460f922f (patch) | |
tree | 8d479d7925cfd009c841361ef75b6c4d1acc0e6e /app/views | |
parent | 99acbc6387d1789bdf950f20c99261ab5b0cbd7b (diff) |
Show highlights and correction regardless of search type.
Contributes to #1118.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/general/search.html.erb | 6 |
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> |