From 98f67e15bb281802504713f1830a2a1cc4061134 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Thu, 21 Jul 2016 14:59:10 -0300 Subject: [PATCH] should not parse html of block help quick link --- app/helpers/boxes_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/boxes_helper.rb b/app/helpers/boxes_helper.rb index eebda45..1b01d81 100644 --- 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? -- libgit2 0.21.2