app/views/decidim/admin/attachments/index.html.erb in decidim-admin-0.28.4 vs app/views/decidim/admin/attachments/index.html.erb in decidim-admin-0.29.0.rc1

- old
+ new

@@ -16,11 +16,11 @@ <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> + <th></th> </tr> </thead> <tbody> <% attached_to.attachments.each do |attachment| %> <tr data-id="<%= attachment.id %>"> @@ -32,10 +32,10 @@ </td> <td> <%= attachment.file_type %> </td> <td> - <%= number_to_human_size(attachment.file_size) %> + <%= attachment.file? ? number_to_human_size(attachment.file_size) : "-" %> </td> <td class="table-list__actions"> <% if allowed_to? :update, :attachment, attachment: attachment %> <%= icon_link_to "pencil-line", edit_polymorphic_path([attached_to, attachment]), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %> <% end %>