summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
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