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