mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 04:36:11 +10:00
Add count to Themes and ColorSchemes
This commit is contained in:
@@ -32,6 +32,11 @@ module Gitlab
|
||||
SCHEMES.detect { |s| s.id == id } || default
|
||||
end
|
||||
|
||||
# Returns the number of defined Schemes
|
||||
def self.count
|
||||
SCHEMES.size
|
||||
end
|
||||
|
||||
# Get the default Scheme
|
||||
#
|
||||
# Returns a Scheme
|
||||
|
||||
@@ -37,6 +37,11 @@ module Gitlab
|
||||
THEMES.detect { |t| t.id == id } || default
|
||||
end
|
||||
|
||||
# Returns the number of defined Themes
|
||||
def self.count
|
||||
THEMES.size
|
||||
end
|
||||
|
||||
# Get the default Theme
|
||||
#
|
||||
# Returns a Theme
|
||||
|
||||
Reference in New Issue
Block a user