Commit e4dcc4298273714fcf0823472333c4df416a59f8
1 parent
a0704534
Exists in
master
and in
29 other branches
ActionItem965: add a hint for invisible blocks
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/helpers/boxes_helper.rb
... | ... | @@ -69,6 +69,9 @@ module BoxesHelper |
69 | 69 | if ( block.respond_to? 'help' ) |
70 | 70 | options[:help] = block.help |
71 | 71 | end |
72 | + unless block.visible? | |
73 | + options[:title] = _("This block is invisible. Your visitors will not see it.") | |
74 | + end | |
72 | 75 | |
73 | 76 | box_decorator.block_target(block.box, block) + |
74 | 77 | content_tag('div', result + footer_content + box_decorator.block_edit_buttons(block), | ... | ... |