summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-15 15:09:34 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-15 15:09:34 +0200
commit8cad1c9f4c2984c0a73627290b5e7c6b465a68c2 (patch)
treec4bbafdfa67b529fcb52a4580240790b4a493b55 /app/helpers/application_helper.rb
parent7799b5bda6ba0a65c5a951dfd72db4fe334dc70e (diff)
downloadgitlab-ce-8cad1c9f4c2984c0a73627290b5e7c6b465a68c2.tar.gz
add dark solarized theme for code preview
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 6048c233fb4..fd8f2c4d3ea 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -128,7 +128,13 @@ module ApplicationHelper
end
def user_color_scheme_class
- current_user.dark_scheme ? :black : :white
+ case current_user.color_scheme_id
+ when 1 then 'white'
+ when 2 then 'black'
+ when 3 then 'solarized-dark'
+ else
+ 'white'
+ end
end
def show_last_push_widget?(event)