Sha256: f4c5544e84bbda1e31c0c68ff095048565c94e71305d82cac9249a04fbfb71d9

Contents?: true

Size: 947 Bytes

Versions: 34

Compression:

Stored size: 947 Bytes

Contents

- if category.present?
  .category-summary-content-block{ data: { analytics: product_list_analytics_data(t('workarea.storefront.content_blocks.category_summary.summary_of', name: category.name)).to_json } }

    %span.category-summary-content-block__heading
      = link_to t('workarea.storefront.content_blocks.category_summary.view_all', name: category.name), category_path(category), class: 'category-summary-content-block__heading-link'

    - if products.empty?
      %p.category-summary-content-block__empty-message= t('workarea.storefront.content_blocks.category_summary.empty', name: category.name)

    - else
      .grid
        - products.each do |product|
          .grid__cell.grid__cell--50.grid__cell--33-at-medium.grid__cell--16-at-wide
            %div.product-summary.product-summary--small{ itemscope: true, itemtype: 'http://schema.org/Product' }
              = render 'workarea/storefront/products/summary', product: product

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
workarea-storefront-3.4.45 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.44 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.43 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.42 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.41 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.40 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.39 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.38 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.37 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.36 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.35 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.34 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.33 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.32 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.31 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.30 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.29 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.28 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.27 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.4.26 app/views/workarea/storefront/content_blocks/_category_summary.html.haml