%= render partial: 'spree/admin/shared/product_tabs', locals: { current: :images } %> <% content_for :page_actions do %>
<%= Spree.t(:thumbnail) %> | <% if has_variants %><%= Spree::Variant.model_name.human %> | <% end %><%= Spree.t(:alt_text) %> | ||
---|---|---|---|---|
<% if can? :edit, image %> <% end %> | <%= link_to image_tag(main_app.url_for(image.url(:mini))), main_app.rails_blob_url(image.attachment) %> | <% if has_variants %><%= options_text_for(image) %> | <% end %><%= image.alt %> | <%= link_to_with_icon('edit', Spree.t(:edit), spree.edit_admin_product_image_url(@product, image), class: 'btn btn-primary btn-sm', no_text: true, data: { action: 'edit' }) if can? :edit, image %> <%= link_to_delete(image, { url: spree.admin_product_image_url(@product, image), no_text: true }) if can? :destroy, image %> |