<%= render :partial => 'spree/admin/shared/product_sub_menu' %> <%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Images'} %> <% content_for :page_actions do %>
  • <%= link_to_with_icon('icon-plus', t(:new_image), new_admin_product_image_url(@product), :id => 'new_image_link', :class => 'button') %>
  • <% end %>
    <% unless @product.images.any? %>
    <%= t(:no_images_found) %>.
    <% else %> <% if @product.has_variants? %> <% end %> <% if @product.has_variants? %> <% end %> <% @product.images.each do |image| %> <% if @product.has_variants? %> <% end %> <% end %> <% @product.variants.each do |variant| %> <% variant.images.each do |image| %> <% if @product.has_variants? %> <% end %> <% end %> <% end %>
    <%= t(:thumbnail) %><%= Spree::Variant.model_name.human %><%= t(:alt_text) %>
    <%= link_to image_tag(image.attachment.url(:mini)), image.attachment.url(:product) %> <%= t(:all) %><%= image.alt %> <%= link_to_with_icon 'icon-edit', t(:edit), edit_admin_product_image_url(@product, image), :no_text => true, :data => {:action => 'edit'} %> <%= link_to_delete image, { :url => admin_product_image_url(@product, image), :no_text => true } %>
    <%= link_to image_tag(image.attachment.url(:mini)), image.attachment.url(:product) %> <%= variant.options_text %> <%= image.alt %> <%= link_to_with_icon 'icon-edit', t(:edit), edit_admin_product_image_url(@product, image), :no_text => true, :data => {:action => 'edit'} %> <%= link_to_delete image, {:url => admin_product_image_url(@product, image), :no_text => true }%>
    <% end %>