Sha256: 942cb8fcd6ac6451e56710bf035315514cbd9488eca917f54d2409a799c8c7df

Contents?: true

Size: 921 Bytes

Versions: 2

Compression:

Stored size: 921 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|
          = render_schema_org(product_schema(product))
          .grid__cell.grid__cell--50.grid__cell--25-at-medium
            %div.product-summary.product-summary--small
              = render 'workarea/storefront/products/summary', product: product

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-nvy_theme-1.2.1 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-nvy_theme-1.2.0 app/views/workarea/storefront/content_blocks/_category_summary.html.haml