]> source.dussan.org Git - redmine.git/commitdiff
Fixes issue introduced in r23145 for rendering attachment and download icons (#23980).
authorMarius Balteanu <marius.balteanu@zitec.com>
Tue, 5 Nov 2024 22:01:19 +0000 (22:01 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Tue, 5 Nov 2024 22:01:19 +0000 (22:01 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23214 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/attachments/_links.html.erb
app/views/files/index.html.erb

index 846ba9496774889c77ebe53c2c8d8d07e5096015..f098c1038a2408675efbd9a3c01b0db42552b370 100644 (file)
@@ -15,9 +15,9 @@
 <% for attachment in attachments %>
 <tr>
   <td>
-    <%= link_to_attachment attachment, class: 'icon icon-attachment ', sprite_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, sprite_icon: 'download' -%>
+    <%= 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>
index 949362bfcb2420c6785cce894cd6be6396a9af38..e6f65a0da8ca45d818477dc57ebe2d9d167bab61 100644 (file)
@@ -34,7 +34,7 @@
       <td class="downloads"><%= file.downloads %></td>
       <td class="digest"><%= file.digest_type %>: <%= file.digest %></td>
       <td class="buttons">
-      <%= link_to_attachment file, class: 'icon-only icon-download', title: l(:button_download), download: true, sprite_icon: 'download' %>
+      <%= link_to_attachment file, class: 'icon-only icon-download', title: l(:button_download), download: true, icon: 'download' %>
       <%= link_to(sprite_icon('del', l(:button_delete)), attachment_path(file), :class => 'icon-only icon-del',
                   :data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %>
       </td>