Sha256: 114eb0a910aaeef2cd795654978314ffc9eb2bb6a6e27c9ec29fd87b8870169f

Contents?: true

Size: 1.13 KB

Versions: 13

Compression:

Stored size: 1.13 KB

Contents

<%
  paginated_products = @searcher.products if params.key?(:keywords)
  paginated_products ||= products
%>
<% if products.empty? %>
  <%= t(:no_products_found) %>
<% elsif params.key?(:keywords) %>
  <h3><%= t(:search_results, :keywords => h(params[:keywords])) %></h3>
<% end %>
 
<% if products.any? %>
<ul class="product-listing">
  <% products.each do |product| %>
    <% if Spree::Config[:show_zero_stock_products] || product.has_stock? %>
      <li id="product_<%= product.id %>">
        <%= hook :products_list_item, {:product => product} do %>
          <%= link_to small_image(product), product %>
          <%= link_to raw(product.name + " <span class='price selling'>#{product_price(product)}</span>"), product, :class => 'info' %>
        <% end %>
      </li>
    <% end %>
  <% end %>
</ul>
<% end %>
 
<hr class="space" />
 
<% if paginated_products.respond_to?(:total_pages)
      params.delete(:search)
      params.delete(:taxon)
      
%><%= will_paginate(paginated_products,
                    :previous_label => "&#171; #{t('previous')}",
                    :next_label => "#{t('next')} &#187;") %>
<% end %>
 
<hr class="space" />

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spree_core-0.60.6 app/views/shared/_products.html.erb
spree_core-0.60.5 app/views/shared/_products.html.erb
spree_core-0.50.4 app/views/shared/_products.html.erb
spree_core-0.60.4 app/views/shared/_products.html.erb
spree_core-0.50.3 app/views/shared/_products.html.erb
spree_core-0.60.3 app/views/shared/_products.html.erb
spree_core-0.60.2 app/views/shared/_products.html.erb
spree_core-0.60.1 app/views/shared/_products.html.erb
spree_core-0.60.0 app/views/shared/_products.html.erb
spree_core-0.60.0.RC1 app/views/shared/_products.html.erb
spree_core-0.50.2 app/views/shared/_products.html.erb
spree_core-0.50.1 app/views/shared/_products.html.erb
spree_core-0.50.0 app/views/shared/_products.html.erb