%= 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) %>
<%= Spree.t(:thumbnail) %> | <% if @product.has_variants? %><%= Spree::Variant.model_name.human %> | <% end %><%= Spree.t(:alt_text) %> | ||
---|---|---|---|---|
<% if can?(:update_positions, Spree::Image) %> <% end %> | <%= link_to image_tag(image.attachment.url(:mini)), image.attachment.url(:product) %> | <% if @product.has_variants? %><%= options_text_for(image) %> | <% end %><%= 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 %> |