Sha256: a92323ddcb24a60025a2f22bc5623f600fe8ea55cfd565849a6001d72e507dce

Contents?: true

Size: 924 Bytes

Versions: 3

Compression:

Stored size: 924 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--25-at-medium
            %div.product-summary.product-summary--small{ itemscope: true, itemtype: 'http://schema.org/Product' }
              = render 'workarea/storefront/products/summary', product: product

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-nvy_theme-1.1.4 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-nvy_theme-1.1.3 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-nvy_theme-1.1.2 app/views/workarea/storefront/content_blocks/_category_summary.html.haml