%= render partial: 'spree/admin/shared/product_tabs', locals: {current: 'Images'} %>
<% admin_breadcrumb(plural_resource_name(Spree::Image)) %>
<% content_for :page_actions do %>
<% if can?(:create, Spree::Image) %>
<%= link_to_with_icon('plus', t('spree.new_image'), new_admin_product_image_url(@product), id: 'new_image_link', class: 'btn btn-primary') %>
<% end %>
<% end %>
<%= render 'new', product: @product, image: Spree::Image.new(viewable: @product) %>
<% no_images = @product.gallery.images.empty? %>
<% if @product.has_variants? %>
<% end %>
|
<%= t('spree.thumbnail') %> |
<% if @product.has_variants? %>
<%= Spree::Variant.model_name.human %> |
<% end %>
<%= Spree::Image.human_attribute_name(:alt) %> |
|
<%= render partial: 'image_row', collection: @product.gallery.images, as: :image %>
<% if no_images %>
<%= t('spree.no_images_found') %>.
<% end %>