%tr %td= link_to attachment.name, file_url(attachment.file), target: :blank %td.nowrap= number_to_human_size(attachment.file.byte_size) %td.nowrap %small= l attachment.created_at, format: '%d %B %Y %H:%M' %td.nowrap.text-right = link_to t('spina.delete'), admin_attachment_path(attachment), method: :delete, class: 'button button-link button-danger button-small', data: {confirm: t('spina.delete_confirmation', subject: attachment.name)}