Commit b868b814 authored by Fatih Acet's avatar Fatih Acet

Revert milestone_remaining_days helper.

parent 480d7468
...@@ -54,18 +54,13 @@ module MilestonesHelper ...@@ -54,18 +54,13 @@ module MilestonesHelper
end end
end end
def milestone_remaining_days(milestone, withContentTag = true) def milestone_remaining_days(milestone)
if milestone.expired? if milestone.expired?
withContentTag ? content_tag(:strong, 'expired') : 'expired' content_tag(:strong, 'expired')
elsif milestone.due_date elsif milestone.due_date
days = milestone.remaining_days days = milestone.remaining_days
if withContentTag
content = content_tag(:strong, days) content = content_tag(:strong, days)
content << " #{'day'.pluralize(days)} remaining" content << " #{'day'.pluralize(days)} remaining"
else
"#{days} #{'day'.pluralize(days)} remaining"
end
end end
end end
end end
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