Sha256: e0f95ed622b2bf796ea100336bca3a0a03002f0cdbc66bfe32216a4e00001701
Contents?: true
Size: 1.07 KB
Versions: 1
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 'harpiya/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harpiya_frontend-4.3.0.alpha | app/views/harpiya/shared/_products.html.erb |