diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-08-29 21:46:40 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-08-29 21:46:40 +0000 |
commit | ffce07e78556580e503a93d6f8decb25a15823b7 (patch) | |
tree | 740ea59d0469c5857408641df9a32d5f2a7aac39 /app/views/news/show.html.erb | |
parent | fdd90bab2b02d6fdd08a860808560eb2cf382af6 (diff) | |
download | redmine-ffce07e78556580e503a93d6f8decb25a15823b7.tar.gz redmine-ffce07e78556580e503a93d6f8decb25a15823b7.zip |
Start working on replacing old icons with SVG icons (#23980):
* Introduces IconsHelper with methods to render SVG icon from a sprite file.
* Adds SVG sprite file with icons mainly from Font Awesome, but also from Material Design Icons and Fluent UI System Icons (based on the work made by Takashi Kato (@tohosaku)).
* Replaces specific icons with new SVG icons.
* Temporarily keep all old CSS icon definitions for backard compatibility.
git-svn-id: https://svn.redmine.org/redmine/trunk@22988 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news/show.html.erb')
-rw-r--r-- | app/views/news/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb index 9b54a66cb..c05f34976 100644 --- a/app/views/news/show.html.erb +++ b/app/views/news/show.html.erb @@ -1,7 +1,7 @@ <%= breadcrumb link_to(l(:label_news_plural), project_news_index_path(@project)) %> <div class="contextual"> <%= watcher_link(@news, User.current) %> -<%= link_to(l(:button_edit), +<%= link_to(icon_with_label('edit', l(:button_edit)), edit_news_path(@news), :class => 'icon icon-edit', :accesskey => accesskey(:edit), @@ -38,7 +38,7 @@ <% @comments.each do |comment| %> <% next if comment.new_record? %> <div class="contextual"> - <%= link_to_if_authorized l(:button_delete), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment}, + <%= link_to_if_authorized icon_with_label('del', l(:button_delete)), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment}, :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete), :class => 'icon-only icon-del' %> |