Sha256: 183a4132b1cf647f18e15af01b6299a9dceae679f8019247d66956b57eb25a3a
Contents?: true
Size: 1.57 KB
Versions: 33
Compression:
Stored size: 1.57 KB
Contents
<% javascript 'backend/sortable' %> <%= render 'backend/breadcrumbs' %> <%= render 'backend/image_collections/tabs', model: @image_collection, active: :images %> <p class="text-right"> <%= link_to icon(:plus, t('b.add')), backend_images_path(klass: @image_collection.class.name, id: @image_collection.id), class: 'btn btn-primary btn-sm' %> </p> <% if @images.any? %> <table class="table table-striped table-hover"> <thead class="thead-inverse"> <tr> <th><%= t 'b.file' %></th> <th><%= t 'b.type' %></th> <th><%= t 'b.size' %></th> <th><%= t 'b.description' %></th> <th><%= t 'b.last_changed_at' %></th> <th> </th> </tr> </thead> <tbody> <% @images.each do |img| %> <% a = img.asset %> <tr data-update-position="<%= update_position_backend_image_collection_image_path(@image_collection, img) %>"> <td> <%= image_tag a.image.url(150, 150), alt: '', class: 'img-fluid' %> </td> <td><%= a.actual_filename.split('.').last.upcase %></td> <td><%= number_to_human_size a.filesize %></td> <td><%= simple_format a.description %></td> <td><%= l a.updated_at %></td> <td class="text-right"> <%= link_to icon(:trash), unlink_backend_images_path(klass: @image_collection.class.name, id: @image_collection.id, asset_id: a.id), data: { confirm: t('b.msg.confirm') }, title: t('b.delete') %> </td> </tr> <% end %> </tbody> </table> <% else %> <p><%= t 'b.msg.no_items' %></p> <% end %>
Version data entries
33 entries across 33 versions & 1 rubygems