gitlabhq/lib/gitlab/theme.rb

18 lines
268 B
Ruby
Raw Normal View History

module Gitlab
class Theme
def self.css_class_by_id(id)
2012-11-21 05:14:05 +01:00
themes = {
1 => "ui_basic",
2 => "ui_mars",
2012-11-21 05:14:05 +01:00
3 => "ui_modern",
4 => "ui_gray",
5 => "ui_color"
}
id ||= 1
return themes[id]
end
end
end