diff --git a/app/helpers/assets_helper.rb b/app/helpers/assets_helper.rb index ee9dab9..f0e2991 100644 --- a/app/helpers/assets_helper.rb +++ b/app/helpers/assets_helper.rb @@ -9,10 +9,6 @@ module AssetsHelper [ "#", "icon-menu-enterprise", _('Enterprises') ], [ "#", "icon-menu-community", _('Communities') ], - # FIXME remove these - [ "#", "icon-menu-", _('bli 1') ], - [ "#", "icon-menu-", _('bli 2') ], - ].map do |target,css_class,name| content_tag('li', link_to(content_tag('span', '', :class => css_class) + name, target)) end.join("\n") diff --git a/app/helpers/boxes_helper.rb b/app/helpers/boxes_helper.rb index dbec31d..ff0c20f 100644 --- a/app/helpers/boxes_helper.rb +++ b/app/helpers/boxes_helper.rb @@ -44,9 +44,18 @@ module BoxesHelper result = extract_block_content(content) footer = extract_block_content(footer) - classes = ['block', block.css_class_name ].uniq.join(' ') + options = { + :class => classes = ['block', block.css_class_name ].uniq.join(' '), + :id => "block-#{block.id}" + } + if ( block.respond_to? 'help' ) + options[:help] = block.help + end - box_decorator.block_target(block.box, block) + content_tag('div', result + footer + box_decorator.block_edit_buttons(block), :class => classes, :id => "block-#{block.id}") + box_decorator.block_handle(block) + box_decorator.block_target(block.box, block) + + content_tag('div', result + footer + box_decorator.block_edit_buttons(block), + options) + + box_decorator.block_handle(block) end def extract_block_content(content) diff --git a/app/models/tags_block.rb b/app/models/tags_block.rb index 8968e29..492ef9b 100644 --- a/app/models/tags_block.rb +++ b/app/models/tags_block.rb @@ -7,12 +7,13 @@ class TagsBlock < Block _('List count of contents by tag') end + def help + _('The tag is created when you add some one to your article.
+ Try to add some tags to some articles and see your tag cloud to grow.') + end + def content block_title(_('Tags')) + - help_textile( - _('The tag is created when you add some one to your article. - Try to add some tags to some articles and see your tag cloud to grow.'), - _('How tags works here?'), :class => 'help_tags' ) + "\n'+ txt +'
'+ '