summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 06:32:39 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 06:32:39 +0000
commit0bdd2454b2f4978a56c1a22971a5d7ae0fbc54c5 (patch)
tree5549221f6449f24ee1947201a3d659ad839d43dc /app/helpers/application_helper.rb
parentcb591d0af65dee0b39365fc55b336f9321c2da54 (diff)
downloadredmine-0bdd2454b2f4978a56c1a22971a5d7ae0fbc54c5.tar.gz
redmine-0bdd2454b2f4978a56c1a22971a5d7ae0fbc54c5.zip
code layout clean up app/helpers/application_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19285 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb7
1 files changed, 6 insertions, 1 deletions
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