Sha256: 91fd2bc0b3e0673c4b9e6f83c6ec187bd7f40d768877ab01396515a348efae22

Contents?: true

Size: 714 Bytes

Versions: 5

Compression:

Stored size: 714 Bytes

Contents

- menus = Carnival::Config::menu.clone
.menu.short
.menu.full
  %ul.menu
    %ul.dropdown_main_menu
      - menus.each do |key, menu|
        %li{:class => menu[:class]}
          = link_to t("carnival.menu.#{ menu[:label].downcase.gsub(' ', '_') }"), menu_link(menu[:link]), {:class => " btn_usuario sublevel"} unless menu[:link].nil?
          - if menu[:subs].present?
            %ul.dropdown_main_menu_sublevel
              - menu[:subs].each do |sub|
                %li
                  = link_to t("carnival.menu.#{ sub[:label].downcase.gsub(' ', '_') }"), menu_link(sub[:link]), {:class => "#{set_resource_actived_if_current(sub[:link])} #{sub[:class]}"}

      %li.minify
        %span= t('minimize')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
carnival-0.1.5 app/views/layouts/carnival/_menu.html.haml
carnival-0.1.3 app/views/layouts/carnival/_menu.html.haml
carnival-0.1.2 app/views/layouts/carnival/_menu.html.haml
carnival-0.1.1 app/views/layouts/carnival/_menu.html.haml
carnival-0.1.0 app/views/layouts/carnival/_menu.html.haml