[Git][noosfero/noosfero][master] 2 commits: html-safe: category index

Rodrigo Souto gitlab at mg.gitlab.com
Tue Jan 17 15:33:52 BRST 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
2ddfa076 by Rodrigo Souto at 2017-01-06T10:50:01-03:00
html-safe: category index

- - - - -
c78adf95 by Rodrigo Souto at 2017-01-17T17:33:46+00:00
Merge branch 'html-safe-categories' into 'master'

html-safe: category index

See merge request !1082
- - - - -


1 changed file:

- app/helpers/search_helper.rb


Changes:

=====================================
app/helpers/search_helper.rb
=====================================
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -50,9 +50,9 @@ module SearchHelper
   end
 
   def category_context(category, url)
-    content_tag('div', category.full_name + _(', ') +
+    content_tag('div', (category.full_name + _(', ') +
         link_to(_('search in all categories'),
-          url.merge(:category_path => [], :action => (params[:action] == 'category_index' ? 'index' : params[:action]) )),
+          url.merge(:category_path => [], :action => (params[:action] == 'category_index' ? 'index' : params[:action]) ))).html_safe,
       :align => 'center', :class => 'search-category-context') if category
   end
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/ab4606af74e5a900f1be738034a2cb9ced435c42...c78adf95a97d28cac9e0b2c910ac8e2deb355e21
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170117/3f6ad1a3/attachment-0001.html>


More information about the Noosfero-dev mailing list