Sha256: 1ebcfdda4a56b4e7b067fd49d66b7bff0d001a710d0d6c5f9d76e70a1909ecbe
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
.mobile-nav__search = form_tag search_path, method: 'get', class: 'mobile-nav__search-form', role: 'search' do .mobile-nav__search-value= search_field_tag :q, params[:q], id: 'mobile_navigation_search', class: 'text-box', title: t('workarea.storefront.searches.search'), placeholder: t('workarea.storefront.searches.search'), tabindex: 1, required: true, data: { search_field: '' } .mobile-nav__search-button = button_tag value: 'search', class: 'button button--small button--full-height button--transparent', tabindex: 2 do = inline_svg('workarea/storefront/icons/search.svg', class: 'page-header__cart-icon svg-icon svg-icon--black', title: t('workarea.storefront.forms.go')) %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-one_theme-1.3.1 | app/views/workarea/storefront/menus/index.html.haml |
workarea-one_theme-1.3.0 | app/views/workarea/storefront/menus/index.html.haml |