Sha256: 0ff635f0c538c181c41725b0201ae1bede038cb041a621e97cc2c5f1280b51c3
Contents?: true
Size: 765 Bytes
Versions: 1
Compression:
Stored size: 765 Bytes
Contents
<% paginated_products = @searcher.retrieve_products if params.key?(:keywords) paginated_products ||= products %> <% content_for :head do %> <% if paginated_products.respond_to?(:total_pages) %> <%= rel_next_prev_link_tags paginated_products %> <% end %> <% end %> <% if products.empty? %> <h2 class="products__results-title"> <%= t('spree.no_products_found') %> </h2> <% elsif params.key?(:keywords) %> <h1 class="products__results-title"> <%= t('spree.search_results', keywords: h(params[:keywords])) %> </h1> <% end %> <% if products.any? %> <%= render 'spree/components/products/products-grid', products: products %> <% end %> <% if paginated_products.respond_to?(:total_pages) %> <%= paginate paginated_products %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_starter_frontend-0.1.0 | app/views/spree/components/products/_products.html.erb |