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
f385988d
Commit
f385988d
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use "Any Label" and "Any Milestone" in selects rather than the ambiguous "Any" option
parent
a895d5d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
label.rb
app/models/label.rb
+1
-1
milestone.rb
app/models/milestone.rb
+3
-3
No files found.
app/models/label.rb
View file @
f385988d
...
@@ -17,7 +17,7 @@ class Label < ActiveRecord::Base
...
@@ -17,7 +17,7 @@ class Label < ActiveRecord::Base
# Requests that have no label assigned.
# Requests that have no label assigned.
LabelStruct
=
Struct
.
new
(
:title
,
:name
)
LabelStruct
=
Struct
.
new
(
:title
,
:name
)
None
=
LabelStruct
.
new
(
'No Label'
,
'No Label'
)
None
=
LabelStruct
.
new
(
'No Label'
,
'No Label'
)
Any
=
LabelStruct
.
new
(
'Any'
,
''
)
Any
=
LabelStruct
.
new
(
'Any
Label
'
,
''
)
DEFAULT_COLOR
=
'#428BCA'
DEFAULT_COLOR
=
'#428BCA'
...
...
app/models/milestone.rb
View file @
f385988d
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
class
Milestone
<
ActiveRecord
::
Base
class
Milestone
<
ActiveRecord
::
Base
# Represents a "No Milestone" state used for filtering Issues and Merge
# Represents a "No Milestone" state used for filtering Issues and Merge
# Requests that have no milestone assigned.
# Requests that have no milestone assigned.
MilestoneStruct
=
Struct
.
new
(
:title
,
:name
)
MilestoneStruct
=
Struct
.
new
(
:title
,
:name
,
:id
)
None
=
MilestoneStruct
.
new
(
'No Milestone'
,
'No Milestone'
)
None
=
MilestoneStruct
.
new
(
'No Milestone'
,
'No Milestone'
,
0
)
Any
=
MilestoneStruct
.
new
(
'Any
'
,
''
)
Any
=
MilestoneStruct
.
new
(
'Any
Milestone'
,
''
,
-
1
)
include
InternalId
include
InternalId
include
Sortable
include
Sortable
...
...
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