app/views/decidim/admin/attachments/index.html.erb in decidim-admin-0.9.3 vs app/views/decidim/admin/attachments/index.html.erb in decidim-admin-0.10.0
- old
+ new
@@ -13,21 +13,29 @@
<div class="table-scroll">
<table class="table-list">
<thead>
<tr>
<th><%= t("models.attachment.fields.title", scope: "decidim.admin") %></th>
+ <th><%= t("models.attachment.fields.collection", scope: "decidim.admin") %></th>
<th><%= t("models.attachment.fields.content_type", scope: "decidim.admin") %></th>
+ <th><%= t("models.attachment.fields.file_size", scope: "decidim.admin") %></th>
<th class="actions"></th>
</tr>
</thead>
<tbody>
<% attached_to.attachments.each do |attachment| %>
<tr data-id="<%= attachment.id %>">
<td>
<%= link_to translated_attribute(attachment.title), edit_polymorphic_path([attached_to, attachment]) %><br />
</td>
<td>
+ <%= translated_attribute(attachment.attachment_collection&.name) %>
+ </td>
+ <td>
<%= attachment.file_type %>
+ </td>
+ <td>
+ <%= number_to_human_size(attachment.file_size) %>
</td>
<td class="table-list__actions">
<% if can? :update, authorization_object %>
<%= icon_link_to "pencil", edit_polymorphic_path([attached_to, attachment]), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
<% end %>