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