Sha256: 1e8bcae0508cd6fc90382ac90a7c72f35192f1ff73cf5445659e11a0c1c6b5b7

Contents?: true

Size: 829 Bytes

Versions: 2

Compression:

Stored size: 829 Bytes

Contents

%div{ class: "result-filters__section result-filters__section--#{facet.system_name}" }
  %h2= t('workarea.storefront.products.filter_title', name: facet.display_name)
  %ul.result-filters__group
    - facet.results.each do |value_name, count|
      %li.result-filters__filter{ class: facet.selected?(value_name) ? 'result-filters__filter--selected' : nil }
        = link_to render_swatch_facet(value_name), facet_path(facet, value_name), rel: 'nofollow', class: 'results-filters__swatch-link'

        = link_to facet_path(facet, value_name), rel: 'nofollow', class: 'result-filters__link' do
          = value_name.titleize

          - if facet.selected?(value_name)
            %strong.result-filters__remove= t('workarea.storefront.products.remove_filter')
          -else
            %span.result-filters__count (#{count})

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-swatches-1.0.6 app/views/workarea/storefront/facets/_swatches.html.haml
workarea-swatches-1.0.5 app/views/workarea/storefront/facets/_swatches.html.haml