summaryrefslogtreecommitdiffstats
path: root/app/views/roles
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-08-29 21:46:40 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-08-29 21:46:40 +0000
commitffce07e78556580e503a93d6f8decb25a15823b7 (patch)
tree740ea59d0469c5857408641df9a32d5f2a7aac39 /app/views/roles
parentfdd90bab2b02d6fdd08a860808560eb2cf382af6 (diff)
downloadredmine-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/roles')
-rw-r--r--app/views/roles/index.html.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb
index f76e90466..1c001cae4 100644
--- a/app/views/roles/index.html.erb
+++ b/app/views/roles/index.html.erb
@@ -1,6 +1,6 @@
<div class="contextual">
-<%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %>
-<%= link_to l(:label_permissions_report), permissions_roles_path, :class => 'icon icon-summary' %>
+<%= link_to icon_with_label('add', l(:label_role_new)), new_role_path, :class => 'icon icon-add' %>
+<%= link_to icon_with_label('summary', l(:label_permissions_report)), permissions_roles_path, :class => 'icon icon-summary' %>
</div>
<h2><%=l(:label_role_plural)%></h2>
@@ -24,7 +24,7 @@
</td>
<td class="buttons">
<%= reorder_handle(role) unless role.builtin? %>
- <%= link_to l(:button_copy), new_role_path(:copy => role), :class => 'icon icon-copy' %>
+ <%= link_to icon_with_label('copy', l(:button_copy)), new_role_path(:copy => role), :class => 'icon icon-copy' %>
<%= delete_link role_path(role) unless role.builtin? %>
</td>
</tr>