diff options
author | Justin C. Klein Keane <justin@madirish.net> | 2016-04-20 14:24:05 -0400 |
---|---|---|
committer | Justin C. Klein Keane <justin@madirish.net> | 2016-04-20 14:24:05 -0400 |
commit | 1239920063457c7955129beaab9692c83e09676c (patch) | |
tree | d63fc1515d7879890db9fe897e5a35f540d57b9e /app/Template | |
parent | aea8784ab5f60a39551e03d04619a043b60205b2 (diff) |
Add sortable Priority column on overview table interface
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/app/tasks.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Template/app/tasks.php b/app/Template/app/tasks.php index d7826fb7..e773bac6 100644 --- a/app/Template/app/tasks.php +++ b/app/Template/app/tasks.php @@ -9,6 +9,7 @@ <th class="column-5"><?= $paginator->order('Id', 'tasks.id') ?></th> <th class="column-20"><?= $paginator->order(t('Project'), 'project_name') ?></th> <th><?= $paginator->order(t('Task'), 'title') ?></th> + <th class="column-5"><?= $paginator->order('Priority', 'tasks.priority') ?></th> <th class="column-20"><?= t('Time tracking') ?></th> <th class="column-20"><?= $paginator->order(t('Due date'), 'date_due') ?></th> </tr> @@ -24,6 +25,11 @@ <?= $this->url->link($this->text->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> </td> <td> + <?php if ($task['priority'] > 0): ?> + <?= $this->text->e($task['priority'])?> + <?php endif?> + </td> + <td> <?php if (! empty($task['time_spent'])): ?> <strong><?= $this->text->e($task['time_spent']).'h' ?></strong> <?= t('spent') ?> <?php endif ?> |