Added translation buttons download, destroy, link. Remove white space.

This commit is contained in:
Alessandro Cuoghi
2017-07-21 19:24:02 +02:00
committed by Senén Rodero Rodríguez
parent 6b61cbe35c
commit 62372aaee3
4 changed files with 14 additions and 8 deletions

View File

@@ -1,11 +1,11 @@
<tr id="<%= dom_id(document)%>">
<td> <%= document.title %></td>
<td><%= document.title %></td>
<td class="text-center">
<%= link_to "Download", document.attachment.url, class: 'button hollow' %>
<%= link_to t('documents.buttons.download_document'), document.attachment.url, class: 'button hollow' %>
</td>
<td class="text-center">
<% if can? :destroy, Document %>
<%= link_to "Destroy",
<%= link_to t('documents.buttons.destroy_document'),
document_path(document, from: request.url), method: :delete,
data: { confirm: "¿Está segurto de que desea eliminar el documento?. Esta acción no se puede deshacer." },
class: 'button hollow alert' %>