Show both time spent and estimated on the board

This commit is contained in:
Frederic Guillot
2016-08-25 21:15:41 -04:00
parent 3350932e7f
commit 98798c5b76
2 changed files with 5 additions and 2 deletions

View File

@@ -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): ?>