Sha256: 7ac1bd9bb7e515a26ddd65dc1656dd9462306a0c3c28a5425cf238a546edd0bd

Contents?: true

Size: 1.15 KB

Versions: 18

Compression:

Stored size: 1.15 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

18 entries across 6 versions & 5 rubygems

Version Path
apispree_core-0.0.0 app/views/shared/_new_release.html.erb
apispree_core-0.0.0 app/views/shared/_upcoming_products.html.erb
apispree_core-0.0.0 app/views/shared/_products.html.erb
My-Commerce_core-1.1.0 app/views/shared/_products.html.erb
My-Commerce_core-1.1.0 app/views/shared/_new_release.html.erb
My-Commerce_core-1.1.0 app/views/shared/_upcoming_products.html.erb
My-Commerce_core-1.0.0 app/views/shared/_products.html.erb
My-Commerce_core-1.0.0 app/views/shared/_upcoming_products.html.erb
My-Commerce_core-1.0.0 app/views/shared/_new_release.html.erb
MyCommerceapi-1.0.0 core/app/views/shared/_products.html.erb
MyCommerceapi-1.0.0 core/app/views/shared/_new_release.html.erb
MyCommerceapi-1.0.0 core/app/views/shared/_upcoming_products.html.erb
MyCommerce-0.0.3 core/app/views/shared/_new_release.html.erb
MyCommerce-0.0.3 core/app/views/shared/_upcoming_products.html.erb
MyCommerce-0.0.3 core/app/views/shared/_products.html.erb
rfcommerce_core-0.0.3 app/views/shared/_new_release.html.erb
rfcommerce_core-0.0.3 app/views/shared/_products.html.erb
rfcommerce_core-0.0.3 app/views/shared/_upcoming_products.html.erb