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