summaryrefslogtreecommitdiffstats
path: root/app/views/principal_memberships
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/principal_memberships
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/principal_memberships')
-rw-r--r--app/views/principal_memberships/_index.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/principal_memberships/_index.html.erb b/app/views/principal_memberships/_index.html.erb
index c55a19543..d6ecaaa40 100644
--- a/app/views/principal_memberships/_index.html.erb
+++ b/app/views/principal_memberships/_index.html.erb
@@ -1,6 +1,6 @@
<% memberships = principal.memberships.preload(:member_roles, :roles).sorted_by_project.to_a %>
-<p><%= link_to l(:label_add_projects), new_principal_membership_path(principal), :remote => true, :class => "icon icon-add" %></p>
+<p><%= link_to icon_with_label('add', l(:label_add_projects)), new_principal_membership_path(principal), :remote => true, :class => "icon icon-add" %></p>
<% if memberships.any? %>
<table class="list memberships">
@@ -22,7 +22,7 @@
<div id="member-<%= membership.id %>-form"></div>
</td>
<td class="buttons">
- <%= link_to l(:button_edit),
+ <%= link_to icon_with_label('edit', l(:button_edit)),
edit_principal_membership_path(principal, membership),
:remote => true,
:class => 'icon icon-edit'