Refactored theme css, added Modern theme pre version
This commit is contained in:
parent
a6dad85d2f
commit
04bf40a923
10 changed files with 172 additions and 11 deletions
15
lib/gitlab/theme.rb
Normal file
15
lib/gitlab/theme.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
module Gitlab
|
||||
class Theme
|
||||
def self.css_class_by_id(id)
|
||||
themes = {
|
||||
1 => "ui_basic",
|
||||
2 => "ui_mars",
|
||||
3 => "ui_modern"
|
||||
}
|
||||
|
||||
id ||= 1
|
||||
|
||||
return themes[id]
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue