Sha256: 1cbb810db2b644ecf7486089feb31b86260de4c7be4686e154448ad41ce79340

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

%ul.l-page__main-menu
  %li= link_to t('views.main_menu.root'), root_path
  %li= link_to t('views.main_menu.news'), news_articles_path
  %li.with-sub-menu
    = link_to t('views.main_menu.catalog'), catalog_index_path
    %ul.sub-menu
      - Model::CATEGORIES.each do |category|
        - if Model.where(category: category).count > 0
          %li= link_to t('views.main_menu.categories.#{category}'), catalog_path(category)
  %li= link_to t('views.main_menu.user_form'), new_model_path
  %li= link_to t('views.main_menu.contacts'), contacts_path

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ultimate-helpers-0.2.2 test/dummy/app/views/application/_main_menu.html.haml
ultimate-helpers-0.2.0 test/dummy/app/views/application/_main_menu.html.haml
ultimate-helpers-0.1.0.1 test/dummy/app/views/application/_main_menu.html.haml
ultimate-helpers-0.1.0.0 test/dummy/app/views/application/_main_menu.html.haml