Sha256: 8de0918523b817c7415715ae1be8056f2828915c17d4bb0e4677718663cad6f9

Contents?: true

Size: 1.04 KB

Versions: 17

Compression:

Stored size: 1.04 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 %>">
        <%= link_to small_image(product), product %>
        <%= link_to raw(product.name + " <span class='price selling'>#{product_price(product)}</span>"), product, :class => 'info' %>
      </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

17 entries across 17 versions & 2 rubygems

Version Path
spree_core-0.30.2 app/views/shared/_products.html.erb
spree_core-0.40.4 app/views/shared/_products.html.erb
spree_core-0.40.3 app/views/shared/_products.html.erb
spree_wholesale-0.40.2.2 app/views/shared/_products.html.erb
spree_wholesale-0.40.2 app/views/shared/_products.html.erb
spree_wholesale-0.40.2.beta app/views/shared/_products.html.erb
spree_core-0.40.2 app/views/shared/_products.html.erb
spree_wholesale-0.40.0.beta4.2 app/views/shared/_products.html.erb
spree_core-0.40.1 app/views/shared/_products.html.erb
spree_wholesale-0.40.0.beta4.1 app/views/shared/_products.html.erb
spree_wholesale-0.40.0.beta3 app/views/shared/_products.html.erb
spree_wholesale-0.40.0.beta2.3 app/views/shared/_products.html.erb
spree_wholesale-0.40.0.beta2 app/views/shared/_products.html.erb
spree_wholesale-0.40.0.beta1 app/views/shared/_products.html.erb
spree_core-0.40.0 app/views/shared/_products.html.erb
spree_core-0.30.1 app/views/shared/_products.html.erb
spree_core-0.30.0 app/views/shared/_products.html.erb