Sha256: 9d2846eff40634d2caed65ec1bba15346587c79d9d505191107356a5b3026f21
Contents?: true
Size: 679 Bytes
Versions: 62
Compression:
Stored size: 679 Bytes
Contents
= link_to 'X', mobile_nav_return_path, class: 'mobile-nav__close-button' %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
62 entries across 62 versions & 1 rubygems