[Git][noosfero/noosfero][master] should not parse html of block help quick link

Leandro Nunes gitlab at mg.gitlab.com
Thu Jul 21 14:59:46 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
98f67e15 by Leandro Nunes dos Santos at 2016-07-21T14:59:10-03:00
should not parse html of block help quick link

- - - - -


1 changed file:

- app/helpers/boxes_helper.rb


Changes:

=====================================
app/helpers/boxes_helper.rb
=====================================
--- a/app/helpers/boxes_helper.rb
+++ b/app/helpers/boxes_helper.rb
@@ -285,7 +285,7 @@ module BoxesHelper
     end
 
     if block.respond_to?(:help)
-      buttons << modal_inline_icon(:help, _('Help on this block'), {}, "#help-on-box-#{block.id}") << content_tag('div', content_tag('h2', _('Help')) + content_tag('div', block.help, :style => 'margin-bottom: 1em;') + modal_close_button(_('Close')), :style => 'display: none;', :id => "help-on-box-#{block.id}")
+      buttons << modal_inline_icon(:help, _('Help on this block'), {}, "#help-on-box-#{block.id}") << content_tag('div', content_tag('h2', _('Help')) + content_tag('div', block.help.html_safe, :style => 'margin-bottom: 1em;') + modal_close_button(_('Close')), :style => 'display: none;', :id => "help-on-box-#{block.id}")
     end
 
     if block.embedable?



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/98f67e15bb281802504713f1830a2a1cc4061134
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160721/38f53f28/attachment-0001.html>


More information about the Noosfero-dev mailing list