summaryrefslogtreecommitdiffstats
path: root/app/views/messages
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/messages
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/messages')
-rw-r--r--app/views/messages/show.html.erb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb
index 87355e65d..b265cc962 100644
--- a/app/views/messages/show.html.erb
+++ b/app/views/messages/show.html.erb
@@ -11,12 +11,12 @@
'#message_topic_wiki'
) if !@topic.locked? && authorize_for('messages', 'reply') %>
<%= link_to(
- icon_with_label('edit', l(:button_edit)),
+ sprite_icon('edit', l(:button_edit)),
{:action => 'edit', :id => @topic},
:class => 'icon icon-edit'
) if @message.editable_by?(User.current) %>
<%= link_to(
- icon_with_label('del', l(:button_delete)),
+ sprite_icon('del', l(:button_delete)),
{:action => 'destroy', :id => @topic},
:method => :post,
:data => {:confirm => l(:text_are_you_sure)},
@@ -37,7 +37,7 @@
<% unless @replies.empty? %>
<div id="replies">
-<h3 class="comments icon icon-comments"><%= icon_with_label('comments', l(:label_reply_plural)) %> (<%= @reply_count %>)</h3>
+<h3 class="comments icon icon-comments"><%= sprite_icon('comments', l(:label_reply_plural)) %> (<%= @reply_count %>)</h3>
<% if !@topic.locked? && authorize_for('messages', 'reply') && @replies.size >= 3 %>
<p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content', :scroll => "message_content" %></p>
<% end %>
@@ -50,13 +50,13 @@
icon_only: true
) if !@topic.locked? && authorize_for('messages', 'reply') %>
<%= link_to(
- icon_with_label('edit', l(:button_edit), icon_only: true),
+ sprite_icon('edit', l(:button_edit), icon_only: true),
{:action => 'edit', :id => message},
:title => l(:button_edit),
:class => 'icon icon-edit'
) if message.editable_by?(User.current) %>
<%= link_to(
- icon_with_label('del', l(:button_delete), icon_only: true),
+ sprite_icon('del', l(:button_delete), icon_only: true),
{:action => 'destroy', :id => message},
:method => :post,
:data => {:confirm => l(:text_are_you_sure)},