summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-07-20 21:35:06 +0000
committerGo MAEDA <maeda@farend.jp>2021-07-20 21:35:06 +0000
commit605dadd37465398e0317ca855741e6582cdd0170 (patch)
tree1fc36dbeda0852864fb4ebb684ba9777f2d79730 /app/helpers/application_helper.rb
parent56a7fd22c7af2119980c6dba42606e140383b878 (diff)
downloadredmine-605dadd37465398e0317ca855741e6582cdd0170.tar.gz
redmine-605dadd37465398e0317ca855741e6582cdd0170.zip
Set "icon icon-group" CSS classes in _members_box.html.erb instead of ApplicationHeler (#12795).
git-svn-id: http://svn.redmine.org/redmine/trunk@21074 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index ae0094872..be3f40a94 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -67,11 +67,12 @@ module ApplicationHelper
when Group
name = h(principal.to_s)
url = group_url(principal, :only_path => only_path)
- css_classes = "group icon icon-#{principal.class.name.downcase}"
+ css_classes = 'group'
else
name = h(principal.to_s)
end
+ css_classes += " #{options[:class]}" if options[:class].present?
url ? link_to(name, url, :class => css_classes) : name
end