Commit 38a9fc4f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Classic (mars) theme will be default for 6.0

parent 5a211152
...@@ -205,6 +205,7 @@ class User < ActiveRecord::Base ...@@ -205,6 +205,7 @@ class User < ActiveRecord::Base
u.projects_limit = Gitlab.config.gitlab.default_projects_limit u.projects_limit = Gitlab.config.gitlab.default_projects_limit
u.can_create_group = Gitlab.config.gitlab.default_can_create_group u.can_create_group = Gitlab.config.gitlab.default_can_create_group
u.can_create_team = Gitlab.config.gitlab.default_can_create_team u.can_create_team = Gitlab.config.gitlab.default_can_create_team
u.theme_id = Gitlab::Theme::MARS
end end
end end
......
module Gitlab module Gitlab
class Theme class Theme
BASIC = 1
MARS = 2
MODERN = 3
GRAY = 4
COLOR = 5
def self.css_class_by_id(id) def self.css_class_by_id(id)
themes = { themes = {
1 => "ui_basic", BASIC => "ui_basic",
2 => "ui_mars", MARS => "ui_mars",
3 => "ui_modern", MODERN => "ui_modern",
4 => "ui_gray", GRAY => "ui_gray",
5 => "ui_color" COLOR => "ui_color"
} }
id ||= 1 id ||= 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment