]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up app/helpers/application_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Nov 2019 06:32:39 +0000 (06:32 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Nov 2019 06:32:39 +0000 (06:32 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19285 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 17540e3f0e049601a3109b385de76c8abcd33e93..d65cd916a3217ecbd2229cc3de428a38280f20cc 100644 (file)
@@ -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