From c9121d520631573bd6f77b378eaa0cd2a0dc2ba3 Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Tue, 22 Jun 2010 18:54:12 +0200 Subject: [PATCH] add hint for search options --- app/views/layouts/application.rhtml | 2 +- app/views/search/_search_result.rhtml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index 8e16864..842c3e4 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -22,7 +22,7 @@ <%= yield :ready_function %> var flip = 0; - $("#search_option_toggle").click(function () { + $(".options_link").click(function () { $("#search_options").toggle( flip++ % 2 == 0 ); }); }); diff --git a/app/views/search/_search_result.rhtml b/app/views/search/_search_result.rhtml index d9a0ff7..658e0fa 100644 --- a/app/views/search/_search_result.rhtml +++ b/app/views/search/_search_result.rhtml @@ -1,6 +1,10 @@
<% if @result.blank? -%> -
<%= _("No packages found that matched your query") %>
+
+ <%= _("No packages found that matched your query") %>. + <%= _("Maybe you want to extend your search using the ") %>search options. +
+ <% else -%> <% @box_title = "#{@page_title}: " + _("%d collections and %d binaries from %d source packages") % [ @result.pattern_count, @result.binary_count, @result.length ] %> <%= render :partial => 'paginator', :locals => {:result => @result} %> -- 2.1.4