From bf78665cae989ab7034f1df09116921b50f181b0 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 6 Feb 2008 22:00:33 +0000 Subject: [PATCH] ActionItem155: making it easier to modify the assets menu (and adding i18n) --- app/helpers/assets_helper.rb | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/app/helpers/assets_helper.rb b/app/helpers/assets_helper.rb index 51110a0..ee9dab9 100644 --- a/app/helpers/assets_helper.rb +++ b/app/helpers/assets_helper.rb @@ -1,15 +1,21 @@ module AssetsHelper def generate_assets_menu() - ' -
  • Blogs
  • -
  • Albuns
  • -
  • Produtos
  • -
  • Empreendimentos
  • -
  • Comunidades
  • -
  • bli 6
  • -
  • bli 7
  • - ' + [ + + [ "#", "icon-menu-blog", _('Blogs') ], + [ "#", "icon-menu-album", _('Albuns') ], + [ "#", "icon-menu-product", _('Products') ], + [ "#", "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") end end -- libgit2 0.21.2