Sha256: 9255b6f7503fc1c6ad8c950c0fa966fd0105615b2852193e842e8ed6be270607
Contents?: true
Size: 981 Bytes
Versions: 10
Compression:
Stored size: 981 Bytes
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 id="products" class="product-listing" data-hook> <% products.each do |product| %> <% if Spree::Config[:show_zero_stock_products] || product.has_stock? %> <li id="product_<%= product.id %>" data-hook="products_list_item"> <%= link_to product.name, product, :class => 'info' %> <%= link_to small_image(product), product %> <span class="price selling"><%= product_price(product) %></span> </li> <% end %> <% end %> </ul> <% end %> <hr class="space" /> <% if paginated_products.respond_to?(:num_pages) params.delete(:search) params.delete(:taxon) %><%= paginate paginated_products %><% end %> <hr class="space" />
Version data entries
10 entries across 10 versions & 1 rubygems