mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 19:20:13 +01:00
fix bug in previous commit
This commit is contained in:
parent
dff0ace1a1
commit
58641a2fd0
1 changed files with 3 additions and 4 deletions
|
|
@ -27,9 +27,7 @@ module ApplicationHelper
|
|||
# a 'traffic light' colour code
|
||||
#
|
||||
def due_date(due)
|
||||
if due == nil
|
||||
return ""
|
||||
end
|
||||
return "" if due.nil?
|
||||
|
||||
days = days_from_today(due)
|
||||
|
||||
|
|
@ -47,7 +45,8 @@ module ApplicationHelper
|
|||
t('todos.next_actions_due_date.due_tomorrow')
|
||||
when 2..7
|
||||
if prefs.due_style == Preference.due_styles[:due_on]
|
||||
t('models.preference.due_on', due.strftime("%A"))
|
||||
# TODO: internationalize strftime here
|
||||
t('models.preference.due_on', :date => due.strftime("%A"))
|
||||
else
|
||||
t('models.preference.due_in', :days => days)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue