Sha256: d88f760801e396a77da2f38bfd7325fe08f5c23d41604f89a2729b171b3822aa

Contents?: true

Size: 707 Bytes

Versions: 10

Compression:

Stored size: 707 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

10 entries across 10 versions & 1 rubygems

Version Path
spree_core-0.70.7 app/views/products/_thumbnails.html.erb
spree_core-0.70.6 app/views/products/_thumbnails.html.erb
spree_core-0.70.5 app/views/products/_thumbnails.html.erb
spree_core-0.70.4 app/views/products/_thumbnails.html.erb
spree_core-1.0.0.rc2 app/views/spree/products/_thumbnails.html.erb
spree_core-1.0.0.rc1 app/views/spree/products/_thumbnails.html.erb
spree_core-0.70.3 app/views/products/_thumbnails.html.erb
spree_core-0.70.2 app/views/products/_thumbnails.html.erb
spree_core-0.70.1 app/views/products/_thumbnails.html.erb
spree_core-0.70.0 app/views/products/_thumbnails.html.erb