<% 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? %> <% 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 %>