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
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,7 @@ New features:
Improvements:
* Show both time spent and estimated on the board
* Store board collapsed mode user preference in the database
* Store comment sorting direction in the database
* Avoid tags overlapping on the board

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