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

Version Path
carnival-0.0.47 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.45 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.44 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.43 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.42 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.41 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.40 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.39 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.38 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.37 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.36 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.35 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.34 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.33 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.26 app/views/layouts/carnival/_menu.html.haml
carnival-0.0.11 app/views/layouts/carnival/_menu.html.haml