% javascript 'backend/sortable' %> <%= render 'backend/breadcrumbs' %> <%= render 'backend/articles/tabs', model: @article, active: :images %>
<%= link_to icon(:plus, t('b.add')), backend_images_path(klass: @article.class.name, id: @article.id), class: 'btn btn-primary btn-sm' %>
<% if @images.any? %><%= t 'b.file' %> | <%= t 'b.type' %> | <%= t 'b.size' %> | <%= t 'b.description' %> | <%= t 'b.last_changed_at' %> | |
---|---|---|---|---|---|
<%= image_tag a.image.url(150, 150), alt: '', class: 'img-fluid' %> | <%= a.extension.upcase %> | <%= number_to_human_size a.filesize %> | <%= simple_format a.description %> | <%= l a.updated_at %> | <%= 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') %> |
<%= t 'b.msg.no_items' %>
<% end %>