Sha256: 046d7c3cd499b33a20cbe6cbf32ca4532ca4f7c921a11d5e85419b7d476d1773

Contents?: true

Size: 1008 Bytes

Versions: 2

Compression:

Stored size: 1008 Bytes

Contents

- if @recent_views.products.any? || @recent_views.categories.any?
  .recent-views

    - if @recent_views.products.any?
      .recent-views__section.recent-views__section--products
        %h2.recent-views__heading= t('workarea.storefront.recommendations.recent_products')
        .grid
          - @recent_views.products.each do |product|
            = render_schema_org(product_schema(product))
            .grid__cell.grid__cell--50.grid__cell--25-at-medium
              .product-summary.product-summary--small
                = render 'workarea/storefront/products/summary', product: product

    - if @recent_views.categories.any?
      .recent-views__section.recent-views__section--categories
        %h2.recent-views__heading= t('workarea.storefront.recommendations.recent_categories')
        %ul.recent-views__list
          - @recent_views.categories.each do |category|
            %li.recent-views__item
              = link_to category.name, category_path(category), class: 'recent-views__link'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-nvy_theme-1.2.1 app/views/workarea/storefront/recent_views/show.html.haml
workarea-nvy_theme-1.2.0 app/views/workarea/storefront/recent_views/show.html.haml