Skip to content
Snippets Groups Projects
Commit 4f5ee68f authored by Fatih Acet's avatar Fatih Acet
Browse files

Copy changes for milestone due dates.

parent b868b814
No related branches found
No related tags found
1 merge request!4448Add milestone expire date to the right sidebar
Pipeline #
Loading
@@ -5,7 +5,7 @@
Loading
@@ -5,7 +5,7 @@
return '' unless time return '' unless time
   
suffix or= 'remaining' suffix or= 'remaining'
expiredLabel or= 'expired' expiredLabel or= 'Past due'
   
jQuery.timeago.settings.allowFuture = yes jQuery.timeago.settings.allowFuture = yes
   
Loading
Loading
Loading
@@ -56,7 +56,7 @@ module MilestonesHelper
Loading
@@ -56,7 +56,7 @@ module MilestonesHelper
   
def milestone_remaining_days(milestone) def milestone_remaining_days(milestone)
if milestone.expired? if milestone.expired?
content_tag(:strong, 'expired') content_tag(:strong, 'Past Due')
elsif milestone.due_date elsif milestone.due_date
days = milestone.remaining_days days = milestone.remaining_days
content = content_tag(:strong, days) content = content_tag(:strong, days)
Loading
Loading
Loading
@@ -6,7 +6,7 @@
Loading
@@ -6,7 +6,7 @@
- if @milestone.closed? - if @milestone.closed?
Closed Closed
- elsif @milestone.expired? - elsif @milestone.expired?
Expired Past Due
- else - else
Open Open
%span.identifier %span.identifier
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment