Sha256: 021ee9df4e9755ce5808f099ba4e90acb2196359d4f083b1663e212a0960655e
Contents?: true
Size: 1.95 KB
Versions: 2
Compression:
Stored size: 1.95 KB
Contents
<%= render :partial => 'admin/shared/product_sub_menu' %> <%= render :partial => 'admin/shared/product_tabs', :locals => {:current => "Images"} %> <table class="index sortable" data-hook="images_table"> <tr data-hook="images_header"> <th><%= t("thumbnail") %></th> <% if @product.has_variants? %> <th><%= Variant.model_name.human %></th> <% end %> <th><%= t("alt_text") %></th> <th><%= t("action") %></th> </tr> <% @product.images.each do |image| %> <tr id="<%= dom_id(image) %>" data-hook="images_row"> <td> <span class="handle"></span> <%= link_to(image_tag(image.attachment.url(:mini)), image.attachment.url(:product)) %> </td> <% if @product.has_variants? %> <td><%= t('all') %></td> <% end %> <td><%= image.alt %></td> <td class="actions"> <%= link_to_with_icon('edit', t("edit"), edit_admin_product_image_url(@product, image), :class => 'edit') %> <%= link_to_delete image, {:url => admin_product_image_url(@product, image) }%> </td> </tr> <% end %> <% @product.variants.each do |variant| %> <% variant.images.each do |image| %> <tr id="<%= dom_id(image) %>" data-hook="images_row"> <td><span class="handle"></span><%= link_to(image_tag(image.attachment.url(:mini)), image.attachment.url(:product)) %></td> <% if @product.has_variants? %> <td><%= variant.options_text %></td> <% end %> <td><%= image.alt %></td> <td class="actions"> <%= link_to_with_icon('edit', t("edit"), edit_admin_product_image_url(@product, image)) %> <%= link_to_delete image, {:url => admin_product_image_url(@product, image) }%> </td> </tr> <% end %> <% end %> </table> <div id="images" data-hook></div> <br/> <p data-hook="links"> <%= link_to icon('add') + ' ' + t("new_image"), new_admin_product_image_url(@product), :id => "new_image_link" %> </p>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_core-0.70.0.rc2 | app/views/admin/images/index.html.erb |
spree_core-0.70.RC1 | app/views/admin/images/index.html.erb |