mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-20 22:24:09 +01:00
fix bug in previous commit
This commit is contained in:
parent
4636ffc9ae
commit
8a17cafdca
1 changed files with 3 additions and 4 deletions
|
|
@ -27,9 +27,7 @@ module ApplicationHelper
|
||||||
# a 'traffic light' colour code
|
# a 'traffic light' colour code
|
||||||
#
|
#
|
||||||
def due_date(due)
|
def due_date(due)
|
||||||
if due == nil
|
return "" if due.nil?
|
||||||
return ""
|
|
||||||
end
|
|
||||||
|
|
||||||
days = days_from_today(due)
|
days = days_from_today(due)
|
||||||
|
|
||||||
|
|
@ -47,7 +45,8 @@ module ApplicationHelper
|
||||||
t('todos.next_actions_due_date.due_tomorrow')
|
t('todos.next_actions_due_date.due_tomorrow')
|
||||||
when 2..7
|
when 2..7
|
||||||
if prefs.due_style == Preference.due_styles[:due_on]
|
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
|
else
|
||||||
t('models.preference.due_in', :days => days)
|
t('models.preference.due_in', :days => days)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue