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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/label.rb
app/models/label.rb
+1
-1
app/models/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
# Requests that have no label assigned.
LabelStruct
=
Struct
.
new
(
:title
,
:name
)
None
=
LabelStruct
.
new
(
'No Label'
,
'No Label'
)
Any
=
LabelStruct
.
new
(
'Any'
,
''
)
Any
=
LabelStruct
.
new
(
'Any
Label
'
,
''
)
DEFAULT_COLOR
=
'#428BCA'
...
...
app/models/milestone.rb
View file @
f385988d
...
...
@@ -16,9 +16,9 @@
class
Milestone
<
ActiveRecord
::
Base
# Represents a "No Milestone" state used for filtering Issues and Merge
# Requests that have no milestone assigned.
MilestoneStruct
=
Struct
.
new
(
:title
,
:name
)
None
=
MilestoneStruct
.
new
(
'No Milestone'
,
'No Milestone'
)
Any
=
MilestoneStruct
.
new
(
'Any
'
,
''
)
MilestoneStruct
=
Struct
.
new
(
:title
,
:name
,
:id
)
None
=
MilestoneStruct
.
new
(
'No Milestone'
,
'No Milestone'
,
0
)
Any
=
MilestoneStruct
.
new
(
'Any
Milestone'
,
''
,
-
1
)
include
InternalId
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