From 4e9672e75fcab459663df0288267f7e1537bdfbc Mon Sep 17 00:00:00 2001 From: Francisco Marcelo de Araújo Lima Júnior Date: Wed, 12 Mar 2014 15:35:57 -0300 Subject: [PATCH] fix typo method name --- app/helpers/boxes_helper.rb | 2 +- app/views/layouts/embed.rhtml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/helpers/boxes_helper.rb b/app/helpers/boxes_helper.rb index f6d1eac..d390651 100644 --- a/app/helpers/boxes_helper.rb +++ b/app/helpers/boxes_helper.rb @@ -219,7 +219,7 @@ module BoxesHelper buttons << thickbox_inline_popup_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;') + thickbox_close_button(_('Close')), :style => 'display: none;', :id => "help-on-box-#{block.id}") end - if block.respond_to?(:embedable) + if block.embedable? url = url_for :controller => 'embed', :action => 'index', :id => block.id, :only_path => false; html = content_tag('div', diff --git a/app/views/layouts/embed.rhtml b/app/views/layouts/embed.rhtml index fd771a6..64af825 100644 --- a/app/views/layouts/embed.rhtml +++ b/app/views/layouts/embed.rhtml @@ -13,7 +13,6 @@ - <%= @plugins.dispatch(:body_beginning).collect do |content| content.respond_to?(:call) ? content.call : content -- libgit2 0.21.2