Sha256: c8e97290cc9c9781eae2c710daa803895f790b1c2be1d3278b076292c743f30a
Contents?: true
Size: 1.3 KB
Versions: 16
Compression:
Stored size: 1.3 KB
Contents
- menus = Carnival::Config::menu.clone - if current_admin_user.present? .menu.full %ul.menu %li{:style => "border-top:none;"} %span.arrow %ul.dropdown_main_menu %li.dashboard = link_to t("menu.dashboard"), admin_root_url, {:class => " btn_usuario sublevel"} %li.administracao = link_to t("menu.admin"), "#", {:class => " btn_usuario sublevel"} %ul.dropdown_main_menu_sublevel %li = link_to t('menu.admin_user'), carnival_admin_users_path, {:class => "#{set_resource_actived_if_current(carnival_admin_users_path)}"} - menus[:admin][:subs].each do |sub| %li = link_to t(sub[:label]), sub[:link], {:class => "#{set_resource_actived_if_current(sub[:link])} #{sub[:class]}"} - menus.delete :admin - menus.each do |key, menu| %li{:class =>key} = link_to t(menu[:label]), menu[:link], {:class => " btn_usuario sublevel"} %ul.dropdown_main_menu_sublevel - menu[:subs].each do |sub| %li = link_to t(sub[:label]), sub[:link], {:class => "#{set_resource_actived_if_current(sub[:link])} #{sub[:class]}"} %li.minify %span="Minimizar" .menu.short
Version data entries
16 entries across 16 versions & 1 rubygems