diff options
author | Drew Blessing <drew.blessing@me.com> | 2014-12-14 19:01:59 -0600 |
---|---|---|
committer | Drew Blessing <drew.blessing@me.com> | 2014-12-15 13:21:26 -0600 |
commit | f06f69b9da81337db14324783b45ea5f55fcf735 (patch) | |
tree | daee94544fb570bc545a229725a0dc8d69bd22dc /app/helpers/application_helper.rb | |
parent | be206a514235fe1ca7f35cf018c44202a331cb87 (diff) | |
download | gitlab-ce-f06f69b9da81337db14324783b45ea5f55fcf735.tar.gz |
Add theme type css class
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 021bd0a494c..01aa4a60d4c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -114,6 +114,10 @@ module ApplicationHelper Gitlab::Theme.css_class_by_id(current_user.try(:theme_id)) end + def theme_type + Gitlab::Theme.type_css_class_by_id(current_user.try(:theme_id)) + end + def user_color_scheme_class COLOR_SCHEMES[current_user.try(:color_scheme_id)] if defined?(current_user) end |