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 => "« #{t('previous')}", :next_label => "#{t('next')} »") %> <% end %> <hr class="space" />
Version data entries
18 entries across 6 versions & 5 rubygems