diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-04-30 14:00:37 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-04-30 14:00:37 -0400 |
commit | 11d1da2d7915fef02e60fff787b1ea640f780cda (patch) | |
tree | 717292f0324ad01c5893feafd2f7ce4ec90d4b8e /app/Template | |
parent | 17e843a2cea02e8e3e67cf04fab341742a25bc6b (diff) |
Add sorting by position in task list view
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/task_list/sort_menu.php | 3 | ||||
-rw-r--r-- | app/Template/task_list/task_icons.php | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/app/Template/task_list/sort_menu.php b/app/Template/task_list/sort_menu.php index 4d0b1189..a42fb46e 100644 --- a/app/Template/task_list/sort_menu.php +++ b/app/Template/task_list/sort_menu.php @@ -17,6 +17,9 @@ <?= $paginator->order(t('Priority'), \Kanboard\Model\TaskModel::TABLE.'.priority') ?> </li> <li> + <?= $paginator->order(t('Position'), \Kanboard\Model\TaskModel::TABLE.'.position') ?> + </li> + <li> <?= $paginator->order(t('Title'), \Kanboard\Model\TaskModel::TABLE.'.title') ?> </li> <li> diff --git a/app/Template/task_list/task_icons.php b/app/Template/task_list/task_icons.php index 528c99b3..6897c260 100644 --- a/app/Template/task_list/task_icons.php +++ b/app/Template/task_list/task_icons.php @@ -88,6 +88,8 @@ </span> <?php endif ?> + <span title="<?= t('Position') ?>">(<?= $task['position'] ?>)</span> + <?php if ($task['is_active'] == 1): ?> <div class="task-icon-age"> <span title="<?= t('Task age in days')?>" class="task-icon-age-total"><?= $this->dt->age($task['date_creation']) ?></span> |