summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-06-18 22:02:12 -0400
committerFrederic Guillot <fred@kanboard.net>2017-06-18 22:02:12 -0400
commite70f904ed4efca82dac5319d9f973b002280aac1 (patch)
treea5e0fd3df890812f498aef45c698688a422fdbc7 /app
parent94a86237fc3d8f554170113ab2b5bdcd12586740 (diff)
Make sure that due datetime is using the right color
Diffstat (limited to 'app')
-rw-r--r--app/Template/board/task_footer.php6
-rw-r--r--app/Template/task_list/task_icons.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php
index 8829204a..c78616e9 100644
--- a/app/Template/board/task_footer.php
+++ b/app/Template/board/task_footer.php
@@ -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>
diff --git a/app/Template/task_list/task_icons.php b/app/Template/task_list/task_icons.php
index 9545b1e1..03a891a2 100644
--- a/app/Template/task_list/task_icons.php
+++ b/app/Template/task_list/task_icons.php
@@ -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>