Make sure that due datetime is using the right color

This commit is contained in:
Frederic Guillot 2017-06-18 22:02:12 -04:00
parent 94a86237fc
commit e70f904ed4
2 changed files with 6 additions and 6 deletions

View File

@ -58,10 +58,10 @@
<?php if (! empty($task['date_due'])): ?>
<span class="task-date
<?php if (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
task-date-today
<?php elseif (time() > $task['date_due']): ?>
<?php if (time() > $task['date_due']): ?>
task-date-overdue
<?php elseif (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
task-date-today
<?php endif ?>
">
<i class="fa fa-calendar"></i>

View File

@ -32,10 +32,10 @@
<?php if (! empty($task['date_due'])): ?>
<span title="<?= t('Due date') ?>" class="task-date
<?php if (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
task-date-today
<?php elseif (time() > $task['date_due']): ?>
<?php if (time() > $task['date_due']): ?>
task-date-overdue
<?php elseif (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
task-date-today
<?php endif ?>
">
<i class="fa fa-calendar"></i>