%
paginated_products = @searcher.products if params.key?(:keywords)
paginated_products ||= products
%>
<% if products.empty? %>
<%= t(:no_products_found) %>
<% elsif params.key?(:keywords) %>
<%= t(:search_results, :keywords => h(params[:keywords])) %>
<% end %>
<% if products.any? %>
<% products.each do |product| %>
<% if Spree::Config[:show_zero_stock_products] || product.has_stock? %>
-
<%= hook :products_list_item, {:product => product} do %>
<%= link_to small_image(product), product %>
<%= link_to raw(product.name + " #{product_price(product)}"), product, :class => 'info' %>
<% end %>
<% end %>
<% end %>
<% end %>
<% 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 %>