diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-05 18:30:16 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-05 18:30:16 -0500 |
commit | 4e07ad6555bee33c6e48992f8f8e56706aff7c58 (patch) | |
tree | 1921c1c080133a6c9bd67119b282d3dbd313e4b2 /app/Template/subtask/table.php | |
parent | 9c15658089ec5bd3914b91c7a59fdb522e837b70 (diff) |
Improve subtask toggle status and timer
Diffstat (limited to 'app/Template/subtask/table.php')
-rw-r--r-- | app/Template/subtask/table.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Template/subtask/table.php b/app/Template/subtask/table.php index 13f7ada6..fea3ae2b 100644 --- a/app/Template/subtask/table.php +++ b/app/Template/subtask/table.php @@ -16,7 +16,7 @@ <tr> <td> <?php if ($editable): ?> - <?= $this->subtask->toggleStatus($subtask, $task['project_id']) ?> + <?= $this->subtask->toggleStatus($subtask, $task['project_id'], true) ?> <?php else: ?> <?= $this->subtask->getTitle($subtask) ?> <?php endif ?> @@ -41,11 +41,11 @@ <li> <?php if ($subtask['is_timer_started']): ?> <i class="fa fa-pause"></i> - <?= $this->url->link(t('Stop timer'), 'timer', 'subtask', array('timer' => 'stop', 'project_id' => $task['project_id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'])) ?> + <?= $this->url->link(t('Stop timer'), 'SubtaskStatus', 'timer', array('timer' => 'stop', 'project_id' => $task['project_id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id']), false, 'subtask-toggle-timer') ?> (<?= $this->dt->age($subtask['timer_start_date']) ?>) <?php else: ?> <i class="fa fa-play-circle-o"></i> - <?= $this->url->link(t('Start timer'), 'timer', 'subtask', array('timer' => 'start', 'project_id' => $task['project_id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'])) ?> + <?= $this->url->link(t('Start timer'), 'SubtaskStatus', 'timer', array('timer' => 'start', 'project_id' => $task['project_id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id']), false, 'subtask-toggle-timer') ?> <?php endif ?> </li> <?php endif ?> |