diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-10-30 13:10:15 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-11-11 16:02:18 +0000 |
commit | 5835134a93b99d2c6af869cbcdea6f25bbb956f6 (patch) | |
tree | afa955e248bd597be1486073054bd9ad9c1a6415 | |
parent | 16762e7379ecd39d3a1e62ca6c7ddfc95914f7bc (diff) |
Don’t render “search their website” if no results
-rw-r--r-- | app/views/request/_search_ahead.html.erb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/request/_search_ahead.html.erb b/app/views/request/_search_ahead.html.erb index f77f5b3ee..d8d7995bb 100644 --- a/app/views/request/_search_ahead.html.erb +++ b/app/views/request/_search_ahead.html.erb @@ -9,10 +9,13 @@ :locals => { :event => result[:model], :info_request => result[:model].info_request } %> <% end %> + + <p> + <a id="body-site-search-link"> + <%= _("Search in their website for this information →") %> + </a> + </p> <% end %> - <p> - <a id="body-site-search-link"><%= _("Or search in their website for this information.") %></a> - </p> <% end %> </div> |