Kanboard-Prod/app/Template/subtask/timer.php

16 lines
644 B
PHP

<span class="subtask-time-tracking">
<?php if (! empty($subtask['time_spent'])): ?>
<?= t('%sh spent', n($subtask['time_spent'])) ?>
<?php endif ?>
<?php if (! empty($subtask['time_spent']) && ! empty($subtask['time_estimated'])): ?>/<?php endif ?>
<?php if (! empty($subtask['time_estimated'])): ?>
<?= t('%sh estimated', n($subtask['time_estimated'])) ?>
<?php endif ?>
<?php if ($this->user->hasProjectAccess('SubtaskController', 'edit', $task['project_id']) && $subtask['user_id'] == $this->user->getId()): ?>
<?= $this->subtask->renderTimer($task, $subtask) ?>
<?php endif ?>
</span>