Sha256: 4b0fd051a688ee4d8b26b9807e9b502383cb375c6b19cc374d46588961d7aef0

Contents?: true

Size: 1.17 KB

Versions: 11

Compression:

Stored size: 1.17 KB

Contents

<%
  paginated_products = @searcher.retrieve_products if params.key?(:keywords)
  paginated_products ||= products
%>
<% if products.empty? %>
  <%= Spree.t(:no_products_found) %>
<% elsif params.key?(:keywords) %>
  <h6 class="search-results-title"><%= Spree.t(:search_results, :keywords => h(params[:keywords])) %></h6>
<% end %>

<% if products.any? %>
<ul id="products" class="inline product-listing" data-hook>
  <% products.each do |product| %>
    <li id="product_<%= product.id %>" class="columns three <%= cycle("alpha", "secondary", "", "omega secondary", :name => "classes") %>" data-hook="products_list_item" itemscope itemtype="http://schema.org/Product">
      <div class="product-image">
        <%= link_to small_image(product, :itemprop => "image"), product, :itemprop => 'url' %>
      </div>
      <%= link_to truncate(product.name, :length => 50), product, :class => 'info', :itemprop => "name", :title => product.name %>
      <span class="price selling" itemprop="price"><%= display_price(product) %></span>
    </li>
  <% end %>
  <% reset_cycle("classes") %>
</ul>
<% end %>

<% if paginated_products.respond_to?(:num_pages) %>
  <%= paginate paginated_products %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_frontend-2.1.2 app/views/spree/shared/_products.html.erb
spree_frontend-2.0.6 app/views/spree/shared/_products.html.erb
spree_frontend-2.1.1 app/views/spree/shared/_products.html.erb
spree_frontend-2.0.5 app/views/spree/shared/_products.html.erb
spree_frontend-2.1.0 app/views/spree/shared/_products.html.erb
spree_frontend-2.0.4 app/views/spree/shared/_products.html.erb
spree_frontend-2.0.3 app/views/spree/shared/_products.html.erb
spree_frontend-2.0.2 app/views/spree/shared/_products.html.erb
spree_frontend-2.0.1 app/views/spree/shared/_products.html.erb
spree_frontend-2.0.0 app/views/spree/shared/_products.html.erb
spree_frontend-2.0.0.rc1 app/views/spree/shared/_products.html.erb