Sha256: 3797c2b9900849d50c01b7f32bdccbf437acf5433f3a8a807c7b6d98c5aa1cf8
Contents?: true
Size: 1.46 KB
Versions: 3
Compression:
Stored size: 1.46 KB
Contents
<div id="images" data-hook></div> <% unless @active_sale_event.sale_images.any? %> <div class="no-objects-found"> <%= t('spree.active_sale.event.no_image') %> </div> <% else %> <table class="index sortable" data-hook="images_table" data-sortable-link="<%= update_positions_admin_active_sale_active_sale_event_sale_images_url(@active_sale, @active_sale_event) %>"> <colgroup> <col style="width: 5%"> <col style="width: 10%"> <col style="width: 45%"> <col style="width: 15%"> </colgroup> <thead> <tr data-hook="images_header"> <th colspan="2"><%= t(:thumbnail) %></th> <th><%= t(:alt_text) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% (@active_sale_event.sale_images).each do |image| %> <tr id="<%= spree_dom_id image %>" data-hook="images_row" class="<%= cycle('odd', 'even')%>"> <td class="no-border"> <span class="handle"></span> </td> <td> <%= link_to image_tag(image.attachment.url(:mini)), image.attachment.url(:original) %> </td> <td><%= image.alt %></td> <td class="actions"> <%= link_to_edit_url [:edit, :admin, @active_sale, @active_sale_event, image], :no_text => true %> <%= link_to_delete image, { :url => [:admin, @active_sale, @active_sale_event, image], :no_text => true } %> </td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems