summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-20 11:46:54 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-20 11:46:54 +0300
commit38a9fc4f4701ff3f2d1a06e8567f45d1bb9fb9c6 (patch)
treed0033d6c4ed40fff26fd6c8fb699af2b5b2f8f17 /lib
parent5a2111526dd7a255f74c98b95eeefc578ab0f444 (diff)
downloadgitlab-ce-38a9fc4f4701ff3f2d1a06e8567f45d1bb9fb9c6.tar.gz
Classic (mars) theme will be default for 6.0
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/theme.rb16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/gitlab/theme.rb b/lib/gitlab/theme.rb
index 7f833867e39..89604162304 100644
--- a/lib/gitlab/theme.rb
+++ b/lib/gitlab/theme.rb
@@ -1,12 +1,18 @@
module Gitlab
class Theme
+ BASIC = 1
+ MARS = 2
+ MODERN = 3
+ GRAY = 4
+ COLOR = 5
+
def self.css_class_by_id(id)
themes = {
- 1 => "ui_basic",
- 2 => "ui_mars",
- 3 => "ui_modern",
- 4 => "ui_gray",
- 5 => "ui_color"
+ BASIC => "ui_basic",
+ MARS => "ui_mars",
+ MODERN => "ui_modern",
+ GRAY => "ui_gray",
+ COLOR => "ui_color"
}
id ||= 1