Make sure that due datetime is using the right color
This commit is contained in:
@@ -58,10 +58,10 @@
|
|||||||
|
|
||||||
<?php if (! empty($task['date_due'])): ?>
|
<?php if (! empty($task['date_due'])): ?>
|
||||||
<span class="task-date
|
<span class="task-date
|
||||||
<?php if (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
|
<?php if (time() > $task['date_due']): ?>
|
||||||
task-date-today
|
|
||||||
<?php elseif (time() > $task['date_due']): ?>
|
|
||||||
task-date-overdue
|
task-date-overdue
|
||||||
|
<?php elseif (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
|
||||||
|
task-date-today
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
">
|
">
|
||||||
<i class="fa fa-calendar"></i>
|
<i class="fa fa-calendar"></i>
|
||||||
|
|||||||
@@ -32,10 +32,10 @@
|
|||||||
|
|
||||||
<?php if (! empty($task['date_due'])): ?>
|
<?php if (! empty($task['date_due'])): ?>
|
||||||
<span title="<?= t('Due date') ?>" class="task-date
|
<span title="<?= t('Due date') ?>" class="task-date
|
||||||
<?php if (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
|
<?php if (time() > $task['date_due']): ?>
|
||||||
task-date-today
|
|
||||||
<?php elseif (time() > $task['date_due']): ?>
|
|
||||||
task-date-overdue
|
task-date-overdue
|
||||||
|
<?php elseif (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
|
||||||
|
task-date-today
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
">
|
">
|
||||||
<i class="fa fa-calendar"></i>
|
<i class="fa fa-calendar"></i>
|
||||||
|
|||||||
Reference in New Issue
Block a user