Sha256: 98da6a40418cec1013b6783cbfeca0eb308461238c122622ced2edf9643f0bf0
Contents?: true
Size: 709 Bytes
Versions: 2
Compression:
Stored size: 709 Bytes
Contents
<!-- no need for thumnails unless there is more then one image --> <% if product.images.size > 1 %> <ul id="product-thumbnails" class="thumbnails" data-hook> <% product.images.each do |i| %> <li class="tmb-all" id="tmb-<%= i.id.to_s %>"><%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)) %></li> <% end %> <% if @product.has_variants? @variants.each do |v| if v.available? v.images.each do |i| %> <li class="vtmb-<%= v.id.to_s %> vtmb" id="tmb-<%= i.id.to_s %>"><%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)) %></li> <% end end end end %> </ul> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_core-0.70.0.rc2 | app/views/products/_thumbnails.html.erb |
spree_core-0.70.RC1 | app/views/products/_thumbnails.html.erb |