diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-02 21:10:40 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-02 21:10:40 +0300 |
commit | 4e06ca9e7d67aee59d691a363dabba46d53d34ba (patch) | |
tree | 350af7ee7d4b8d0d22b4f251141f486fa8ae181a /app/helpers/preferences_helper.rb | |
parent | 8e3523281051490ff696bfd85bea1195c046c87c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/preferences_helper.rb')
-rw-r--r-- | app/helpers/preferences_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb index 5a917a02d51..ff1f9d6d9fe 100644 --- a/app/helpers/preferences_helper.rb +++ b/app/helpers/preferences_helper.rb @@ -61,6 +61,10 @@ module PreferencesHelper @user_application_theme ||= Gitlab::Themes.for_user(current_user).css_class end + def user_application_theme_name + @user_application_theme_name ||= Gitlab::Themes.for_user(current_user).name.downcase.tr(' ', '_') + end + def user_color_scheme Gitlab::ColorSchemes.for_user(current_user).css_class end |