Sha256: d4bcc39a7965eb9ecd52b4543c03e588f3968aab501e883cc183cae588474c69
Contents?: true
Size: 813 Bytes
Versions: 8
Compression:
Stored size: 813 Bytes
Contents
<%# no need for thumbnails unless there is more than one image %> <% if (@product.images + @product.variant_images).uniq.size > 1 %> <ul id="product-thumbnails" class="thumbnails list-inline" data-hook> <% @product.images.each do |i| %> <li class='tmb-all tmb-<%= i.viewable.id %>'> <%= link_to(image_tag(main_app.url_for(i.url(:mini)), class: "thumbnail"), main_app.url_for(i.url(:product))) %> </li> <% end %> <% if @product.has_variants? %> <% @product.variant_images.each do |i| %> <% next if @product.images.include?(i) %> <li class='vtmb tmb-<%= i.viewable.id %>'> <%= link_to(image_tag(main_app.url_for(i.url(:mini)), class: "thumbnail"), main_app.url_for(i.url(:product))) %> </li> <% end %> <% end %> </ul> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems