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

Revert milestone_remaining_days helper.

parent 480d7468
No related branches found
No related tags found
1 merge request!4448Add milestone expire date to the right sidebar
Pipeline #
Loading
Loading
@@ -54,18 +54,13 @@ module MilestonesHelper
end
end
 
def milestone_remaining_days(milestone, withContentTag = true)
def milestone_remaining_days(milestone)
if milestone.expired?
withContentTag ? content_tag(:strong, 'expired') : 'expired'
content_tag(:strong, 'expired')
elsif milestone.due_date
days = milestone.remaining_days
if withContentTag
content = content_tag(:strong, days)
content << " #{'day'.pluralize(days)} remaining"
else
"#{days} #{'day'.pluralize(days)} remaining"
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment