diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-08-25 15:24:53 -0700 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-08-25 15:32:38 -0700 |
commit | 2c3e42e4a44e2f40e521cbafc8144e5d7c366b76 (patch) | |
tree | 805e249cd96c5cb968cbedd096061beab081b3aa /app/helpers/preferences_helper.rb | |
parent | 59180c4f5a553938ee79968e7983aee6ce584ff5 (diff) | |
download | gitlab-ce-2c3e42e4a44e2f40e521cbafc8144e5d7c366b76.tar.gz |
Remove user_color_scheme_class
Instead of rendering this value server-side, we use Javascript and Gon
to apply the user's color scheme (or the default) to any syntax
highlighted code blocks.
This will make it easier to cache these blocks in the future because
they're no longer state-dependent.
Diffstat (limited to 'app/helpers/preferences_helper.rb')
-rw-r--r-- | app/helpers/preferences_helper.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb index b294ddc9d72..51a6b3fa997 100644 --- a/app/helpers/preferences_helper.rb +++ b/app/helpers/preferences_helper.rb @@ -33,10 +33,6 @@ module PreferencesHelper Gitlab::Themes.by_id(current_user.try(:theme_id)).css_class end - def user_color_scheme_class - Gitlab::ColorSchemes.by_id(current_user.try(:color_scheme_id)).css_class - end - def prefer_readme? !current_user || current_user.project_view == 'readme' |