Skip to content
Snippets Groups Projects
Commit 38a9fc4f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Classic (mars) theme will be default for 6.0

parent 5a211152
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -205,6 +205,7 @@ class User < ActiveRecord::Base
u.projects_limit = Gitlab.config.gitlab.default_projects_limit
u.can_create_group = Gitlab.config.gitlab.default_can_create_group
u.can_create_team = Gitlab.config.gitlab.default_can_create_team
u.theme_id = Gitlab::Theme::MARS
end
end
 
Loading
Loading
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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment