gitlab-org--gitlab-foss/lib/gitlab/theme.rb
Dmitriy Zaporozhets 515ed7755e
Respect default theme settings. Fixed sign-in button on publica page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-10 13:58:52 +02:00

23 lines
402 B
Ruby

module Gitlab
class Theme
BASIC = 1
MARS = 2
MODERN = 3
GRAY = 4
COLOR = 5
def self.css_class_by_id(id)
themes = {
BASIC => "ui_basic",
MARS => "ui_mars",
MODERN => "ui_modern",
GRAY => "ui_gray",
COLOR => "ui_color"
}
id ||= Gitlab.config.gitlab.default_theme
return themes[id]
end
end
end