summaryrefslogtreecommitdiff
path: root/app/Template/board/task_footer.php
diff options
context:
space:
mode:
authorLev Lazinskiy <lev@circleci.com>2016-06-06 19:53:01 -0700
committerLev Lazinskiy <lev@circleci.com>2016-06-06 20:07:01 -0700
commitf97d683ede0f61ec5ef1773e85033b931af42db6 (patch)
tree2bc7248ee12b4e3487cd7a2fb21d07e738fd52fb /app/Template/board/task_footer.php
parent9e1a1f10be4a5aaa72c47c0e963d998b3692706c (diff)
Show tasks that are due today in a different color
I chose a "Triadic" color from this page, http://www.colorhexa.com/d90000 it seems to look good under various categories. Fix #2285
Diffstat (limited to 'app/Template/board/task_footer.php')
-rw-r--r--app/Template/board/task_footer.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php
index 11df8962..f6cbff70 100644
--- a/app/Template/board/task_footer.php
+++ b/app/Template/board/task_footer.php
@@ -27,7 +27,11 @@
<?php endif ?>
<?php if (! empty($task['date_due'])): ?>
- <span class="task-board-date <?= time() > $task['date_due'] ? 'task-board-date-overdue' : '' ?>">
+ <?php if (date('d') == date('d', $task['date_due'])): ?>
+ <span class="task-board-date task-board-date-today">
+ <?php elseif (time() > $task['date_due']): ?>
+ <span class="task-board-date task-board-date-overdue">
+ <?php endif ?>
<i class="fa fa-calendar"></i>
<?= $this->dt->date($task['date_due']) ?>
</span>