Sha256: f476717593ba0d6fe2aeb1d5e59954b74b2587ed95caf31cc9afcc0d5da40614

Contents?: true

Size: 796 Bytes

Versions: 12

Compression:

Stored size: 796 Bytes

Contents

<% content_for :sidebar do %>
  <div data-hook="homepage_sidebar_navigation">
    <% if "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"><%= t(:no_products_found) %></h6>
    <% else %>
      <%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>
    <% end %>
  </div>

<% else %>

  <div data-hook="homepage_products">
    <%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>
  </div>
<% end %>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
spree_core-1.2.4 app/views/spree/products/index.html.erb
spree_core-1.3.2 app/views/spree/products/index.html.erb
spree_core-1.2.3 app/views/spree/products/index.html.erb
spree_core-1.3.1 app/views/spree/products/index.html.erb
spree_core-1.3.0 app/views/spree/products/index.html.erb
spree_core-1.3.0.rc2 app/views/spree/products/index.html.erb
dup_spree_core-1.3.0.rc1 app/views/spree/products/index.html.erb
spree_core-1.3.0.rc1 app/views/spree/products/index.html.erb
spree_core-1.2.2 app/views/spree/products/index.html.erb
spree_core-1.2.0 app/views/spree/products/index.html.erb
spree_core-1.2.0.rc2 app/views/spree/products/index.html.erb
spree_core-1.2.0.rc1 app/views/spree/products/index.html.erb