Sha256: 19bfa8db74c8ce5d054cb6bd79ba1ebc9cb7b045a31b186bfe389d1c75053b08
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
<% paginated_products = @searcher.products if params.key?(:keywords) paginated_products ||= products %> <% if products.empty? %> <%= t(:no_products_found) %> <% elsif params.key?(:keywords) %> <h6 class="search-results-title"><%= t(:search_results, :keywords => h(params[:keywords])) %></h6> <% end %> <% if products.any? %> <ul id="products" class="inline product-listing" data-hook> <% products.each do |product| %> <% if Spree::Config[:show_zero_stock_products] || product.has_stock? %> <li id="product_<%= product.id %>" class="columns three" data-hook="products_list_item" itemscope itemtype="http://schema.org/Product"> <div class="product-image"> <%= link_to small_image(product, :itemprop => "name"), product %> </div> <%= link_to product.name, product, :class => 'info', :itemprop => "name" %> <span class="price selling" itemprop="price"><%= number_to_currency product.price %></span> </li> <% end %> <% end %> </ul> <% end %> <% if paginated_products.respond_to?(:num_pages) params.delete(:search) params.delete(:taxon) %><%= paginate paginated_products %><% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_core-1.0.0 | app/views/spree/shared/_products.html.erb |
spree_core-1.0.0.rc4 | app/views/spree/shared/_products.html.erb |
spree_core-1.0.0.rc3 | app/views/spree/shared/_products.html.erb |