Sha256: c5b33ea626f0d892aad2ac9607aa5039cdbae5ff5fc40cc2b8ad5025e7fe6105

Contents?: true

Size: 944 Bytes

Versions: 66

Compression:

Stored size: 944 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 %>

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
spree_frontend-3.7.14.1 app/views/spree/products/index.html.erb
spree_frontend-3.7.14 app/views/spree/products/index.html.erb
spree_frontend-3.7.13 app/views/spree/products/index.html.erb
spree_frontend-3.7.12 app/views/spree/products/index.html.erb
spree_frontend-3.7.11 app/views/spree/products/index.html.erb
spree_frontend-3.4.6 app/views/spree/products/index.html.erb
spree_frontend-3.7.10 app/views/spree/products/index.html.erb
spree_frontend-3.7.9 app/views/spree/products/index.html.erb
spree_frontend-3.7.8 app/views/spree/products/index.html.erb
spree_frontend-3.7.7 app/views/spree/products/index.html.erb
spree_frontend-3.7.6 app/views/spree/products/index.html.erb
spree_frontend-3.7.5 app/views/spree/products/index.html.erb
spree_frontend-4.0.0.rc2 app/views/spree/products/index.html.erb
spree_frontend-4.0.0.rc1 app/views/spree/products/index.html.erb
spree_frontend-4.0.0.beta app/views/spree/products/index.html.erb
spree_frontend-3.7.4 app/views/spree/products/index.html.erb
spree_frontend-3.7.3 app/views/spree/products/index.html.erb
spree_frontend-3.7.2 app/views/spree/products/index.html.erb
spree_frontend-3.7.1 app/views/spree/products/index.html.erb
spree_frontend-3.7.0 app/views/spree/products/index.html.erb