diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 17540e3f0..d65cd916a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -362,7 +362,12 @@ module ApplicationHelper def due_date_distance_in_words(date) if date - l((date < User.current.today ? :label_roadmap_overdue : :label_roadmap_due_in), distance_of_date_in_words(User.current.today, date)) + l((if date < User.current.today + :label_roadmap_overdue + else + :label_roadmap_due_in + end), + distance_of_date_in_words(User.current.today, date)) end end