Sha256: 1df08cd68ca5397630c62fdfe026ea8377adb5caaf2b0280b59576083958c161

Contents?: true

Size: 867 Bytes

Versions: 15

Compression:

Stored size: 867 Bytes

Contents

<% 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 %>


<% 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

15 entries across 15 versions & 1 rubygems

Version Path
spree_frontend-2.2.14 app/views/spree/products/index.html.erb
spree_frontend-2.2.13 app/views/spree/products/index.html.erb
spree_frontend-2.2.12 app/views/spree/products/index.html.erb
spree_frontend-2.2.11 app/views/spree/products/index.html.erb
spree_frontend-2.2.10 app/views/spree/products/index.html.erb
spree_frontend-2.2.9 app/views/spree/products/index.html.erb
spree_frontend-2.2.8 app/views/spree/products/index.html.erb
spree_frontend-2.2.7 app/views/spree/products/index.html.erb
spree_frontend-2.2.6 app/views/spree/products/index.html.erb
spree_frontend-2.2.5 app/views/spree/products/index.html.erb
spree_frontend-2.2.4 app/views/spree/products/index.html.erb
spree_frontend-2.2.3 app/views/spree/products/index.html.erb
spree_frontend-2.2.2 app/views/spree/products/index.html.erb
spree_frontend-2.2.1 app/views/spree/products/index.html.erb
spree_frontend-2.2.0 app/views/spree/products/index.html.erb