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
b5ece088
Commit
b5ece088
authored
Mar 29, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ruby fixes
parent
35b3c709
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
app/helpers/issuables_helper.rb
app/helpers/issuables_helper.rb
+4
-11
No files found.
app/helpers/issuables_helper.rb
View file @
b5ece088
...
@@ -48,18 +48,11 @@ module IssuablesHelper
...
@@ -48,18 +48,11 @@ module IssuablesHelper
end
end
def
milestone_dropdown_label
(
milestone_title
,
default_label
)
def
milestone_dropdown_label
(
milestone_title
,
default_label
)
milestone_title
=
if
milestone_title
==
Milestone
::
Upcoming
.
name
if
milestone_title
==
Milestone
::
Upcoming
.
name
Milestone
::
Upcoming
.
title
milestone_title
=
Milestone
::
Upcoming
.
title
else
milestone_title
end
end
if
!
milestone_title
.
nil?
&&
!
milestone_title
.
empty?
h
(
milestone_title
.
presence
||
default_label
)
h
(
milestone_title
)
else
default_label
end
end
end
private
private
...
...
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