Sha256: fcf7a7734eb3e1fd6cf6f9040706fdc9e49eadc2fae969b350fc02cd340088a2

Contents?: true

Size: 971 Bytes

Versions: 4

Compression:

Stored size: 971 Bytes

Contents

- if product.try(:display_browse_swatches?)
  .swatch-options.swatch-options--small
    %ul.swatch-options__group
      - product.browse_swatch_option.selections.each do |selection|
        - swatch = product.swatches_by_option[selection.optionize]
        - swatch_content = render_browse_swatch(selection, swatch)

        - if product.current_browse_selection?(selection)
          %li.swatch-options__swatch.swatch-options__swatch--selected>
            = swatch_content
        - else
          %li.swatch-options__swatch>
            - selection_options = option_selection_url_for(product, product.browse_swatch_option, selection)
            - product_path = product_path(product, product.browse_link_options.merge(selection_options))

            = link_to product_path, title: selection, class: 'swatch-options__swatch-button', data: { product_summary_swatch: { url: summary_product_path(product, selection_options) }.to_json } do
              = swatch_content

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
workarea-one_theme-1.3.1 app/views/workarea/storefront/products/_swatch_summary.html.haml
workarea-swatches-1.0.6 app/views/workarea/storefront/products/_swatch_summary.html.haml
workarea-one_theme-1.3.0 app/views/workarea/storefront/products/_swatch_summary.html.haml
workarea-swatches-1.0.5 app/views/workarea/storefront/products/_swatch_summary.html.haml