]> source.dussan.org Git - redmine.git/commitdiff
Switches group icon in members box to SVG icon (#41711, #23980).
authorMarius Balteanu <marius.balteanu@zitec.com>
Thu, 7 Nov 2024 21:38:43 +0000 (21:38 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Thu, 7 Nov 2024 21:38:43 +0000 (21:38 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23222 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index c5248472615567d47ca95cce3a9c5f20f0aecd20..4a02d8376b128a64ea56b6c1caf7443162f64dd7 100644 (file)
@@ -76,7 +76,7 @@ module ApplicationHelper
     end
 
     css_classes += " #{options[:class]}" if css_classes && options[:class].present?
-    url ? link_to(name, url, :class => css_classes) : name
+    url ? link_to(principal_icon(principal.class.name.downcase).to_s + name, url, :class => css_classes) : name
   end
 
   # Displays a link to edit group page if current user is admin