Sha256: ce0e09d76314b266e2ad3a9daad78d5c96ea1c6737ee20ae0557c363d5cc9b32
Contents?: true
Size: 1.07 KB
Versions: 46
Compression:
Stored size: 1.07 KB
Contents
<% content_for :head do %> <% if products.respond_to?(:total_pages) %> <%= rel_next_prev_link_tags products %> <% end %> <% end %> <div class="col-md-12 col-lg-9" data-hook="homepage_products"> <div class="row"> <% cache cache_key_for_products(products) do %> <% products.each_with_index do |product, index| %> <div id="product_<%= product.id %>" class="col-sm-4 col-6 mb-3 mb-md-4 pr-sm-0 pr-md-0 pl-md-4 pl-sm-4 <%= index&1 == 0 ? 'pl-0 pr-2' : 'pr-0 pl-2' %>"> <%= render 'spree/shared/product', product: product, image_class: 'product-component-plp-image' %> </div> <% end %> <% end %> </div> <% if products.respond_to?(:total_pages) %> <div class="row pl-md-4 pl-sm-4"> <div class="col-12"> <div class="plp-pagination d-none d-lg-flex"> <%= paginate products, window: 2, theme: 'twitter-bootstrap-4' %> </div> <div class="plp-pagination d-lg-none"> <%= paginate products, window: 1, theme: 'twitter-bootstrap-4' %> </div> </div> </div> <% end %> </div>
Version data entries
46 entries across 46 versions & 1 rubygems