Add rel attribute with nofollow value.

This commit is contained in:
Senén Rodero Rodríguez
2017-07-24 18:38:39 +02:00
parent a709cd0479
commit c438e510c0
5 changed files with 33 additions and 11 deletions

View File

@@ -3,7 +3,11 @@
<%= document.title %>
</td>
<td class="text-center">
<%= link_to t('documents.buttons.download_document'), document.attachment.url, target: :blank, class: 'button hollow' %>
<%= link_to t('documents.buttons.download_document'),
document.attachment.url,
target: "_blank",
rel: "nofollow",
class: 'button hollow' %>
</td>
<td class="text-center">
<% if can? :destroy, Document %>