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