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
3a1fff9c
Commit
3a1fff9c
authored
Jan 26, 2017
by
Pedro Moreira da Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format milestone header as issues and MRs
* Enclose the identifier in strong * Use the % character as in GFM * Remove spaces around en dash for date range
parent
9f6660b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
milestones_helper.rb
app/helpers/milestones_helper.rb
+1
-1
show.html.haml
app/views/projects/milestones/show.html.haml
+2
-3
No files found.
app/helpers/milestones_helper.rb
View file @
3a1fff9c
...
...
@@ -97,7 +97,7 @@ module MilestonesHelper
def
milestone_date_range
(
milestone
)
if
milestone
.
start_date
&&
milestone
.
due_date
"
#{
milestone
.
start_date
.
to_s
(
:medium
)
}
-
#{
milestone
.
due_date
.
to_s
(
:medium
)
}
"
"
#{
milestone
.
start_date
.
to_s
(
:medium
)
}
–
#{
milestone
.
due_date
.
to_s
(
:medium
)
}
"
elsif
milestone
.
due_date
if
milestone
.
due_date
.
past?
"expired on
#{
milestone
.
due_date
.
to_s
(
:medium
)
}
"
...
...
app/views/projects/milestones/show.html.haml
View file @
3a1fff9c
...
...
@@ -19,10 +19,9 @@
Open
.header-text-content
%span
.identifier
Milestone ##{@milestone.iid}
%strong
Milestone %
#{
@milestone
.
iid
}
-
if
@milestone
.
due_date
||
@milestone
.
start_date
%span
.creator
·
=
milestone_date_range
(
@milestone
)
.milestone-buttons
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
...
...
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