summaryrefslogtreecommitdiff
path: root/app/views/profiles
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-08-25 14:31:33 -0700
committerRobert Speicher <rspeicher@gmail.com>2015-08-25 15:32:38 -0700
commit4344b8d2d4367b19c6849c3cab0d02d17ddf2304 (patch)
treeacdd4182f3fecac6c22fb1cfb783cb987ad87001 /app/views/profiles
parent429c0d14918d8727eac0e24ff01df5cdf55b2f79 (diff)
downloadgitlab-ce-4344b8d2d4367b19c6849c3cab0d02d17ddf2304.tar.gz
Add Gitlab::ColorSchemes module
Very similar to Gitlab::Theme, this contains all of the definitions for our syntax highlighting schemes.
Diffstat (limited to 'app/views/profiles')
-rw-r--r--app/views/profiles/preferences/show.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/profiles/preferences/show.html.haml b/app/views/profiles/preferences/show.html.haml
index 1134317ee06..aa0361a0a1b 100644
--- a/app/views/profiles/preferences/show.html.haml
+++ b/app/views/profiles/preferences/show.html.haml
@@ -22,11 +22,11 @@
.panel-heading
Syntax highlighting theme
.panel-body
- - color_schemes.each do |color_scheme_id, color_scheme|
+ - Gitlab::ColorSchemes.each do |scheme|
= label_tag do
- .preview= image_tag "#{color_scheme}-scheme-preview.png"
- = f.radio_button :color_scheme_id, color_scheme_id
- = color_scheme.tr('-_', ' ').titleize
+ .preview= image_tag "#{scheme.css_class}-scheme-preview.png"
+ = f.radio_button :color_scheme_id, scheme.id
+ = scheme.name
.panel.panel-default
.panel-heading