diff --git a/plugins/documents/app/views/documents/_documents.html.haml b/plugins/documents/app/views/documents/_documents.html.haml index ef2d5bec..42be7ed4 100644 --- a/plugins/documents/app/views/documents/_documents.html.haml +++ b/plugins/documents/app/views/documents/_documents.html.haml @@ -16,5 +16,5 @@ %td= h show_user(document.created_by) %td - if document.created_by == current_user or current_user.role_admin? - = link_to t('ui.delete'), document, :method => :delete, :data => {:confirm => t('admin.confirm', name: document.name)}, + = link_to t('ui.delete'), document, :method => :delete, :data => {:confirm => t('ui.confirm_delete', name: document.name)}, class: 'btn btn-mini btn-danger'