Sha256: 2bfc8412b9c4c9c76d2ae74a77f80d1c36b175eb40cedf92a2f5ee07697c62af
Contents?: true
Size: 1.47 KB
Versions: 28
Compression:
Stored size: 1.47 KB
Contents
<% javascript 'backend/sortable' %> <%= render 'backend/breadcrumbs' %> <%= render 'backend/pages/tabs', model: @page, active: :images %> <p class="text-right"> <%= link_to icon(:plus, t('b.add')), backend_images_path(klass: @page.class.name, id: @page.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_page_image_path(@page, 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: @page.class.name, id: @page.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
28 entries across 28 versions & 1 rubygems