Sha256: 5ec942a963eadd792afa69b201f1721ab2e2bc8f46f37d35ca4afcc399501f6b

Contents?: true

Size: 1.31 KB

Versions: 34

Compression:

Stored size: 1.31 KB

Contents

- if @recent_views.products.any? || @recent_views.categories.any? || @recent_views.searches.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')
        - @recent_views.products.each do |product|
          .product-summary.product-summary--small{ itemscope: true, itemtype: 'http://schema.org/Product' }
            = 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'

    - if @recent_views.searches.any?
      .recent-views__section.recent-views__section--searches
        %h2.recent-views__heading= t('workarea.storefront.recommendations.recent_searches')
        %ul.recent-views__list
          - @recent_views.searches.each do |search|
            %li.recent-views__item
              = link_to search, search_path(q: search), class: 'recent-views__link'

Version data entries

34 entries across 34 versions & 1 rubygems

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