diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-11 16:26:45 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-11 16:26:45 -0400 |
commit | d3727e92a6000a01fb962e559f8e6b936def1fb9 (patch) | |
tree | 23a12c7c7db5644f0a938eb0d4bed2c81d811a61 /app/Template/board/task_footer.php | |
parent | 52bc2efc65af690b075d58dcff23eac97d1a0495 (diff) |
Add category description (merge and modify pull-request #692)
Diffstat (limited to 'app/Template/board/task_footer.php')
-rw-r--r-- | app/Template/board/task_footer.php | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php index 635ed31f..36ed2684 100644 --- a/app/Template/board/task_footer.php +++ b/app/Template/board/task_footer.php @@ -1,15 +1,19 @@ -<?php if ($task['category_id']): ?> +<?php if (! empty($task['category_id'])): ?> <div class="task-board-category-container"> <span class="task-board-category"> - <?= $this->a( - $this->inList($task['category_id'], $categories), - 'board', - 'changeCategory', - array('task_id' => $task['id'], 'project_id' => $task['project_id']), - false, - 'task-board-popover', - t('Change category') - ) ?> + <?php if ($not_editable): ?> + <?= $this->inList($task['category_id'], $categories_listing) ?> + <?php else: ?> + <?= $this->a( + $this->inList($task['category_id'], $categories_listing), + 'board', + 'changeCategory', + array('task_id' => $task['id'], 'project_id' => $task['project_id']), + false, + 'task-board-popover' . (isset($categories_description[$task['category_id']]) ? ' column-tooltip' : ''), + isset($categories_description[$task['category_id']]) ? $this->markdown($categories_description[$task['category_id']]) : t('Change category') + ) ?> + <?php endif ?> </span> </div> <?php endif ?> |