Sha256: aa8b644abb96a8b2f490bff35009ddaf7a417f73f99f0e5328b3406863d34bca

Contents?: true

Size: 656 Bytes

Versions: 8

Compression:

Stored size: 656 Bytes

Contents

<% content_for :sidebar do %>
  <div data-hook="homepage_sidebar_navigation">
    <% if "products" == @current_controller && @taxon %>
      <%= render 'shared/filters' %>
    <% else %>
      <%= render 'shared/taxonomies' %>
    <% end %>
  </div>
<% end %>


<% if params[:keywords] %>

  <div data-hook="search_results">
    <% if @products.empty? %>
      <%= t(:no_products_found) %>
    <% else %>
      <%= render 'shared/products', :products => @products, :taxon => @taxon %>
    <% end %>
  </div>

<% else %>

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_core-0.70.7 app/views/products/index.html.erb
spree_core-0.70.6 app/views/products/index.html.erb
spree_core-0.70.5 app/views/products/index.html.erb
spree_core-0.70.4 app/views/products/index.html.erb
spree_core-0.70.3 app/views/products/index.html.erb
spree_core-0.70.2 app/views/products/index.html.erb
spree_core-0.70.1 app/views/products/index.html.erb
spree_core-0.70.0 app/views/products/index.html.erb