Sha256: ae2a177cbac3f0c2032d3ac6d681431f9209af24b0e82bfb3acdad65857ee07c

Contents?: true

Size: 988 Bytes

Versions: 12

Compression:

Stored size: 988 Bytes

Contents

<% if "spree/products" == params[:controller] && @taxon || @taxonomies.present? %>
  <% content_for :sidebar do %>
    <div data-hook="homepage_sidebar_navigation">
      <% if "spree/products" == params[:controller] && @taxon %>
        <%= render partial: 'spree/shared/filters' %>
      <% else %>
        <%= render partial: 'spree/shared/taxonomies' %>
      <% end %>
    </div>
  <% end %>
<% end %>

<% if params[:keywords] %>
  <div data-hook="search_results">
    <% if @products.empty? %>
      <h6 class="search-results-title"><%= Spree.t(:no_products_found) %></h6>
    <% else %>
      <%= render partial: 'spree/shared/products', locals: { products: @products, taxon: @taxon } %>
    <% end %>
  </div>
<% else %>
  <div data-hook="homepage_products">
    <% cache(cache_key_for_products) do %>
      <%= render partial: 'spree/shared/products', locals: { products: @products, taxon: @taxon } %>
    <% end %>
  </div>
<% end %>

<%= products_structured_data(@products) %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_frontend-4.0.9 app/views/spree/products/index.html.erb
spree_frontend-4.0.8 app/views/spree/products/index.html.erb
spree_frontend-4.0.7.1 app/views/spree/products/index.html.erb
spree_frontend-4.0.7 app/views/spree/products/index.html.erb
spree_frontend-4.0.6 app/views/spree/products/index.html.erb
spree_frontend-4.0.5 app/views/spree/products/index.html.erb
spree_frontend-4.0.4 app/views/spree/products/index.html.erb
spree_frontend-4.0.3 app/views/spree/products/index.html.erb
spree_frontend-4.0.2 app/views/spree/products/index.html.erb
spree_frontend-4.0.1 app/views/spree/products/index.html.erb
spree_frontend-4.0.0 app/views/spree/products/index.html.erb
spree_frontend-4.0.0.rc3 app/views/spree/products/index.html.erb