BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2d72efcd
Commit
2d72efcd
authored
Aug 26, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `count` to Themes and ColorSchemes
parent
6d43308b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
color_schemes.rb
lib/gitlab/color_schemes.rb
+5
-0
themes.rb
lib/gitlab/themes.rb
+5
-0
No files found.
lib/gitlab/color_schemes.rb
View file @
2d72efcd
...
...
@@ -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
...
...
lib/gitlab/themes.rb
View file @
2d72efcd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment