Sha256: 6f437b0f2e9bb61756a1f9db7edb6918e5b628827d0a21b40b1abbc174d1d602

Contents?: true

Size: 787 Bytes

Versions: 3

Compression:

Stored size: 787 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|
    %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: 'mobile-nav__link'
      - elsif menu.taxon.present?
        = link_to menu.taxon.name, storefront_path_for(menu.taxon), class: 'mobile-nav__link'
      - else
        %span.mobile-nav__link= menu.name

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-nvy_theme-1.1.4 app/views/workarea/storefront/menus/index.html.haml
workarea-nvy_theme-1.1.3 app/views/workarea/storefront/menus/index.html.haml
workarea-nvy_theme-1.1.2 app/views/workarea/storefront/menus/index.html.haml