From e4dcc4298273714fcf0823472333c4df416a59f8 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 18 Mar 2009 15:35:36 -0300 Subject: [PATCH] ActionItem965: add a hint for invisible blocks --- app/helpers/boxes_helper.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/app/helpers/boxes_helper.rb b/app/helpers/boxes_helper.rb index 28ec885..8c5f149 100644 --- a/app/helpers/boxes_helper.rb +++ b/app/helpers/boxes_helper.rb @@ -69,6 +69,9 @@ module BoxesHelper if ( block.respond_to? 'help' ) options[:help] = block.help end + unless block.visible? + options[:title] = _("This block is invisible. Your visitors will not see it.") + end box_decorator.block_target(block.box, block) + content_tag('div', result + footer_content + box_decorator.block_edit_buttons(block), -- libgit2 0.21.2