Commit 0ed464f70b8989f8922adab086a1a96e0e108734
1 parent
482ea439
Exists in
master
and in
29 other branches
ActionItem546: printing the category name instead of dumping the object
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2203 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -625,7 +625,7 @@ module ApplicationHelper | @@ -625,7 +625,7 @@ module ApplicationHelper | ||
625 | def search_page_title(title, options={}) | 625 | def search_page_title(title, options={}) |
626 | title = "<h1>" + title + "</h1>" | 626 | title = "<h1>" + title + "</h1>" |
627 | title += "<h2 align='center'>" + _("Searched for '%s'") % options[:query] + "</h2>" if !options[:query].blank? | 627 | title += "<h2 align='center'>" + _("Searched for '%s'") % options[:query] + "</h2>" if !options[:query].blank? |
628 | - title += "<h2 align='center'>" + _("In category %s") % options[:category] + "</h2>" if !options[:category].blank? | 628 | + title += "<h2 align='center'>" + _("In category %s") % options[:category].name + "</h2>" if !options[:category].blank? |
629 | title += "<h2 align='center'>" + _("within %d from %s") % [options[:distance], options[:region]] + "</h2>" if !options[:distance].blank? && !options[:region].blank? | 629 | title += "<h2 align='center'>" + _("within %d from %s") % [options[:distance], options[:region]] + "</h2>" if !options[:distance].blank? && !options[:region].blank? |
630 | title += "<h2 align='center'>" + _("%d results found") % options[:total_results] + "</h2>" if !options[:total_results].blank? | 630 | title += "<h2 align='center'>" + _("%d results found") % options[:total_results] + "</h2>" if !options[:total_results].blank? |
631 | title | 631 | title |