diff options
author | Frédéric Guillot <fred@kanboard.net> | 2016-10-21 07:31:22 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2016-10-21 07:31:22 -0400 |
commit | 6a3e435e89173d6e14377c975d42c3c0b18f2ea3 (patch) | |
tree | 1d64cbc633640ef144dd65cf8097561c8e1ddf72 /app | |
parent | 5ab4cfd35b7550123bfbf9b1d57bf2aefc56f786 (diff) |
Show move position menu when necessary
Diffstat (limited to 'app')
-rw-r--r-- | app/Template/task/sidebar.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php index 640423f4..9472b6ba 100644 --- a/app/Template/task/sidebar.php +++ b/app/Template/task/sidebar.php @@ -78,13 +78,15 @@ <i class="fa fa-clone fa-fw"></i> <?= $this->url->link(t('Move to another project'), 'TaskDuplicationController', 'move', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?> </li> + <?php if ($task['is_active'] == 1 && $this->projectRole->isSortableColumn($task['project_id'], $task['column_id'])): ?> + <li> + <i class="fa fa-arrows fa-fw"></i> + <?= $this->url->link(t('Move position'), 'TaskMovePositionController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?> + </li> + <?php endif ?> <?php if ($this->projectRole->canChangeTaskStatusInColumn($task['project_id'], $task['column_id'])): ?> <?php if ($task['is_active'] == 1): ?> <li> - <i class="fa fa-arrows fa-fw"></i> - <?= $this->url->link(t('Move position'), 'TaskMovePositionController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?> - </li> - <li> <i class="fa fa-times fa-fw"></i> <?= $this->url->link(t('Close this task'), 'TaskStatusController', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?> </li> |