From ffce07e78556580e503a93d6f8decb25a15823b7 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Thu, 29 Aug 2024 21:46:40 +0000 Subject: 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 --- app/views/context_menus/issues.html.erb | 18 +++++++++--------- app/views/context_menus/projects.html.erb | 2 +- app/views/context_menus/time_entries.html.erb | 6 +++--- app/views/context_menus/users.html.erb | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) (limited to 'app/views/context_menus') diff --git a/app/views/context_menus/issues.html.erb b/app/views/context_menus/issues.html.erb index a61b951fa..9b9c7f07a 100644 --- a/app/views/context_menus/issues.html.erb +++ b/app/views/context_menus/issues.html.erb @@ -2,10 +2,10 @@ <%= call_hook(:view_issues_context_menu_start, {:issues => @issues, :can => @can, :back => @back }) %> <% if @issue -%> -
  • <%= context_menu_link l(:button_edit), edit_issue_path(@issue), +
  • <%= context_menu_link icon_with_label('edit', l(:button_edit)), edit_issue_path(@issue), :class => 'icon icon-edit', :disabled => !@can[:edit] %>
  • <% else %> -
  • <%= context_menu_link l(:label_bulk_edit), bulk_edit_issues_path(:ids => @issue_ids), +
  • <%= context_menu_link icon_with_label('edit', l(:label_bulk_edit)), bulk_edit_issues_path(:ids => @issue_ids), :class => 'icon icon-edit', :disabled => !@can[:edit] %>
  • <% end %> @@ -130,7 +130,7 @@
  • <%= l(:label_issue_watchers) %>