Sha256: 23c101176af6e4df90ba824d9df6763df5ce4a1d3aaf338fdf8baaa40b4f5a11

Contents?: true

Size: 1.18 KB

Versions: 9

Compression:

Stored size: 1.18 KB

Contents

<% content_for :head do %>
  <% if products.respond_to?(:total_pages) %>
    <%= rel_next_prev_link_tags products %>
  <% end %>
<% end %>

<div data-hook="products_search_results_heading">
  <% if products.empty? %>
    <div data-hook="products_search_results_heading_no_results_found">
      <%= Spree.t(:no_products_found) %>
    </div>
  <% elsif params.key?(:keywords) %>
    <%= render partial: 'spree/shared/trackers/segment/products_searched.js',
                formats: :js,
                locals: { query: params[:keywords] } %>
    <div data-hook="products_search_results_heading_results_found">
      <h6 class="search-results-title"><%= Spree.t(:search_results, keywords: h(params[:keywords])) %></h6>
    </div>
  <% end %>
</div>

<%= render partial: 'spree/shared/trackers/segment/product_list_viewed.js',
            formats: :js,
            locals: { taxon: @taxon, products: products } %>
<% if products.any? %>
  <div id="products" class="row" data-hook>
    <%= render partial: 'spree/products/product', collection: products, locals: { taxon: @taxon } %>
  </div>
<% end %>

<% if products.respond_to?(:total_pages) %>
  <%= paginate products, theme: 'twitter-bootstrap-3' %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_frontend-3.4.6 app/views/spree/shared/_products.html.erb
spree_frontend-3.4.5 app/views/spree/shared/_products.html.erb
spree_frontend-3.4.4 app/views/spree/shared/_products.html.erb
spree_frontend-3.4.3 app/views/spree/shared/_products.html.erb
spree_frontend-3.4.2 app/views/spree/shared/_products.html.erb
spree_frontend-3.4.1 app/views/spree/shared/_products.html.erb
spree_frontend-3.4.0 app/views/spree/shared/_products.html.erb
spree_frontend-3.4.0.rc2 app/views/spree/shared/_products.html.erb
spree_frontend-3.4.0.rc1 app/views/spree/shared/_products.html.erb