summaryrefslogtreecommitdiffstats
path: root/app/views/attachments
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-10-19 10:06:26 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-10-19 10:06:26 +0000
commitd1008280d8bead4757646d53f18d0b76fa20b429 (patch)
tree6424d06cc95da85711dc27460e39a976760527fd /app/views/attachments
parentffb78c12c35192aff8e13389577ef9564ab278ee (diff)
downloadredmine-d1008280d8bead4757646d53f18d0b76fa20b429.tar.gz
redmine-d1008280d8bead4757646d53f18d0b76fa20b429.zip
Renames and improves methods provided by @IconsHelper@ (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23145 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r--app/views/attachments/_links.html.erb10
-rw-r--r--app/views/attachments/edit_all.html.erb2
2 files changed, 6 insertions, 6 deletions
diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb
index 1eac93344..846ba9496 100644
--- a/app/views/attachments/_links.html.erb
+++ b/app/views/attachments/_links.html.erb
@@ -1,11 +1,11 @@
<div class="attachments">
<div class="contextual">
- <%= link_to(icon_with_label('edit', l(:label_edit_attachments)),
+ <%= link_to(sprite_icon('edit', l(:label_edit_attachments)),
container_attachments_edit_path(container),
:title => l(:label_edit_attachments),
:class => 'icon-only icon-edit '
) if options[:editable] %>
- <%= link_to(icon_with_label('download', l(:label_download_all_attachments)),
+ <%= link_to(sprite_icon('download', l(:label_download_all_attachments)),
container_attachments_download_path(container),
:title => l(:label_download_all_attachments),
:class => 'icon-only icon-download '
@@ -15,9 +15,9 @@
<% for attachment in attachments %>
<tr>
<td>
- <%= link_to_attachment attachment, class: 'icon icon-attachment ', icon: 'attachment' -%>
+ <%= link_to_attachment attachment, class: 'icon icon-attachment ', sprite_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, icon: 'download' -%>
+ <%= link_to_attachment attachment, class: 'icon-only icon-download ', title: l(:button_download), download: true, sprite_icon: 'download' -%>
</td>
<td><%= attachment.description unless attachment.description.blank? %></td>
<td>
@@ -27,7 +27,7 @@
</td>
<td>
<% if options[:deletable] %>
- <%= link_to icon_with_label('del', l(:button_delete)), attachment_path(attachment),
+ <%= link_to sprite_icon('del', l(:button_delete)), attachment_path(attachment),
:data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
:class => 'delete icon-only icon-del ',
diff --git a/app/views/attachments/edit_all.html.erb b/app/views/attachments/edit_all.html.erb
index 2b611ebaf..749b53dbb 100644
--- a/app/views/attachments/edit_all.html.erb
+++ b/app/views/attachments/edit_all.html.erb
@@ -11,7 +11,7 @@
<% @attachments.each do |attachment| %>
<tr>
<td colspan="2">
- <span class="icon icon-attachment"><%= icon_with_label('attachment', attachment.filename_was) %></span>
+ <span class="icon icon-attachment"><%= sprite_icon('attachment', attachment.filename_was) %></span>
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
<span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
</td>