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
...@@ -97,7 +97,7 @@ module MilestonesHelper ...@@ -97,7 +97,7 @@ module MilestonesHelper
def milestone_date_range(milestone) def milestone_date_range(milestone)
if milestone.start_date && milestone.due_date 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 elsif milestone.due_date
if milestone.due_date.past? if milestone.due_date.past?
"expired on #{milestone.due_date.to_s(:medium)}" "expired on #{milestone.due_date.to_s(:medium)}"
......
...@@ -19,10 +19,9 @@ ...@@ -19,10 +19,9 @@
Open Open
.header-text-content .header-text-content
%span.identifier %span.identifier
Milestone ##{@milestone.iid} %strong
Milestone %#{@milestone.iid}
- if @milestone.due_date || @milestone.start_date - if @milestone.due_date || @milestone.start_date
%span.creator
·
= milestone_date_range(@milestone) = milestone_date_range(@milestone)
.milestone-buttons .milestone-buttons
- if can?(current_user, :admin_milestone, @project) - if can?(current_user, :admin_milestone, @project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment