Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
9e613b91
Commit
9e613b91
authored
Jul 23, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7318 from jvanbaarsen/constant-warning-fix
Removed some constant allready defined warnings
parents
c29857ac
3c439888
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
lib/gitlab/theme.rb
lib/gitlab/theme.rb
+5
-5
lib/gitlab/visibility_level.rb
lib/gitlab/visibility_level.rb
+4
-4
No files found.
lib/gitlab/theme.rb
View file @
9e613b91
module
Gitlab
class
Theme
BASIC
=
1
MARS
=
2
MODERN
=
3
GRAY
=
4
COLOR
=
5
BASIC
=
1
unless
const_defined?
(
:BASIC
)
MARS
=
2
unless
const_defined?
(
:MARS
)
MODERN
=
3
unless
const_defined?
(
:MODERN
)
GRAY
=
4
unless
const_defined?
(
:GRAY
)
COLOR
=
5
unless
const_defined?
(
:COLOR
)
def
self
.
css_class_by_id
(
id
)
themes
=
{
...
...
lib/gitlab/visibility_level.rb
View file @
9e613b91
...
...
@@ -5,9 +5,9 @@
#
module
Gitlab
module
VisibilityLevel
PRIVATE
=
0
INTERNAL
=
10
PUBLIC
=
20
PRIVATE
=
0
unless
const_defined?
(
:PRIVATE
)
INTERNAL
=
10
unless
const_defined?
(
:INTERNAL
)
PUBLIC
=
20
unless
const_defined?
(
:PUBLIC
)
class
<<
self
def
values
...
...
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