diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-08-25 21:15:41 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-08-25 21:15:41 -0400 |
commit | 98798c5b76c6b1d24f94666a07e92f28f30a5dc0 (patch) | |
tree | 54dcbde83fe8b3f394824f412df28410ddff0fc0 /app/Template/board/task_footer.php | |
parent | 3350932e7f4879a098c5310c0ab74f24b0430f75 (diff) |
Show both time spent and estimated on the board
Diffstat (limited to 'app/Template/board/task_footer.php')
-rw-r--r-- | app/Template/board/task_footer.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php index bc34363c..650fe559 100644 --- a/app/Template/board/task_footer.php +++ b/app/Template/board/task_footer.php @@ -81,8 +81,10 @@ </span> <?php endif ?> - <?php if (! empty($task['time_estimated'])): ?> - <span class="task-time-estimated" title="<?= t('Time estimated') ?>"><?= $this->text->e($task['time_estimated']).'h' ?></span> + <?php if (! empty($task['time_estimated']) || ! empty($task['time_spent'])): ?> + <span class="task-time-estimated" title="<?= t('Time spent and estimated') ?>"> + <?= $this->text->e($task['time_spent']) ?>/<?= $this->text->e($task['time_estimated']) ?>h + </span> <?php endif ?> <?php if ($task['is_milestone'] == 1): ?> |