Sha256: ea60461f3fe7b8fd6519ff2840827a470adb3a6af68342fcb03c83ab38716652
Contents?: true
Size: 860 Bytes
Versions: 5
Compression:
Stored size: 860 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 inline" data-hook> <% @product.images.each do |i| %> <li class='tmb-all' id='tmb-<%= i.id %>'> <%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product), :class => 'tmb-all', :id => "tmb-#{i.id}") %> </li> <% end %> <% if @product.has_variants? %> <% @variants.select(&:available?).each do |v| %> <% v.images.each do |i| %> <% next if @product.images.include?(i) %> <li class='vtmb-<%= v.id %> vtmb' id='tmb-<%= i.id %>'> <%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)) %> </li> <% end %> <% end %> <% end %> </ul> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems