mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-11 18:11:32 +00:00
code layout clean up app/helpers/application_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19285 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cb591d0af6
commit
0bdd2454b2
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user