Sha256: c3137136cd49c9d09a016bf3b0e4872651cc3bd92993f1de528719033213ed33
Contents?: true
Size: 874 Bytes
Versions: 2
Compression:
Stored size: 874 Bytes
Contents
= link_to mobile_nav_return_path, class: 'mobile-nav__close-button' do = inline_svg('workarea/storefront/icons/close.svg', class: 'mobile-nav__close-button-icon', title: t('workarea.storefront.mobile_nav.close')) .mobile-nav__header.mobile-nav__header--transparent %ul.mobile-nav__menu{ role: 'navigation' } - @menus.each do |menu| - styles = link_selected?(menu.taxon) ? 'mobile-nav__link mobile-nav__link--selected' : 'mobile-nav__link' %li.mobile-nav__item{ class: ('mobile-nav__item--has-children' if menu.content_blocks.present?)} - if menu.content_blocks.present? = link_to menu.name, menu_path(menu, return_to: mobile_nav_return_path, mobile_nav: true), class: styles - elsif menu.taxon.present? = link_to menu.taxon.name, storefront_path_for(menu.taxon), class: styles - else %span{ class: styles }= menu.name
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-nvy_theme-1.2.1 | app/views/workarea/storefront/menus/index.html.haml |
workarea-nvy_theme-1.2.0 | app/views/workarea/storefront/menus/index.html.haml |