Sha256: 68830f85dabd0bf6d10f797098b870753b825e320fe48a33295c4484d2126301

Contents?: true

Size: 944 Bytes

Versions: 28

Compression:

Stored size: 944 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--33-at-medium.grid__cell--16-at-wide
            %div.product-summary.product-summary--small
              = render 'workarea/storefront/products/summary', product: product

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-storefront-3.5.6 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.5.5 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.5.4 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.5.3 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.5.2 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.5.1 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.5.0 app/views/workarea/storefront/content_blocks/_category_summary.html.haml
workarea-storefront-3.5.0.beta.1 app/views/workarea/storefront/content_blocks/_category_summary.html.haml