summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-08-30 15:50:08 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-08-30 15:50:08 +0000
commit6b327b8852f86d87195609c754bfc7f1ec654159 (patch)
tree7b99a47f795c6f48e9809fe4cabda89eb12494e2 /app/views
parentee54f091cb808f4f3811a7be3b9273f5b8b261d6 (diff)
downloadredmine-6b327b8852f86d87195609c754bfc7f1ec654159.tar.gz
redmine-6b327b8852f86d87195609c754bfc7f1ec654159.zip
Add icon to attachment link only when icon variable is passed.
git-svn-id: https://svn.redmine.org/redmine/trunk@22990 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/attachments/_links.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb
index c90f0df7a..1eac93344 100644
--- a/app/views/attachments/_links.html.erb
+++ b/app/views/attachments/_links.html.erb
@@ -15,9 +15,9 @@
<% for attachment in attachments %>
<tr>
<td>
- <%= link_to_attachment attachment, class: 'icon icon-attachment ' -%>
+ <%= link_to_attachment attachment, class: 'icon icon-attachment ', icon: 'attachment' -%>
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
- <%= link_to_attachment attachment, class: 'icon-only icon-download ', title: l(:button_download), download: true -%>
+ <%= link_to_attachment attachment, class: 'icon-only icon-download ', title: l(:button_download), download: true, icon: 'download' -%>
</td>
<td><%= attachment.description unless attachment.description.blank? %></td>
<td>