summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-06 08:24:10 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-06 08:24:10 -0700
commit8da7c3bfbc975d03d997edddb2dd83d0af5fb187 (patch)
tree47e409be7b4e1672a30b97682edab60d4706040b /app/helpers/application_helper.rb
parent36777f4ad32c90c34f13eab454292e041b72861b (diff)
parent15d54b29649652226dc62044680913640be6e407 (diff)
downloadgitlab-ce-8da7c3bfbc975d03d997edddb2dd83d0af5fb187.tar.gz
Merge pull request #4178 from docwhat/use-COLOR_SCHEMES
design pages now uses the COLOR_SCHEMES
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 7af74a9f719..935fb327c62 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -4,12 +4,23 @@ require 'uri'
module ApplicationHelper
COLOR_SCHEMES = {
1 => 'white',
- 2 => 'black',
+ 2 => 'dark',
3 => 'solarized-dark',
4 => 'monokai',
}
COLOR_SCHEMES.default = 'white'
+ # Helper method to access the COLOR_SCHEMES
+ #
+ # The keys are the `color_scheme_ids`
+ # The values are the `name` of the scheme.
+ #
+ # The preview images are `name-scheme-preview.png`
+ # The stylesheets should use the css class `.name`
+ def color_schemes
+ COLOR_SCHEMES.freeze
+ end
+
# Check if a particular controller is the current one
#
# args - One or more controller names to check