diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 23:19:40 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 23:19:40 +0200 |
commit | e383c069f1aeba49ea9905f77a51bf663e614b0e (patch) | |
tree | 8164aa9e1fad104997e53c6e261bec991631dbbb /app/Templates/board_task.php | |
parent | 8c6df9ef0cea757d25cbbcc6fa7cee86d8739627 (diff) |
Add public view for tasks
Diffstat (limited to 'app/Templates/board_task.php')
-rw-r--r-- | app/Templates/board_task.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/Templates/board_task.php b/app/Templates/board_task.php index 40590a65..20947a02 100644 --- a/app/Templates/board_task.php +++ b/app/Templates/board_task.php @@ -1,6 +1,6 @@ <?php if (isset($not_editable)): ?> - #<?= $task['id'] ?> - + <a href="?controller=task&action=readonly&task_id=<?= $task['id'] ?>&token=<?= $project['token'] ?>">#<?= $task['id'] ?></a> - <span class="task-board-user"> <?php if (! empty($task['owner_id'])): ?> @@ -15,7 +15,9 @@ <?php endif ?> <div class="task-board-title"> - <?= Helper\escape($task['title']) ?> + <a href="?controller=task&action=readonly&task_id=<?= $task['id'] ?>&token=<?= $project['token'] ?>"> + <?= Helper\escape($task['title']) ?> + </a> </div> <?php else: ?> @@ -73,7 +75,11 @@ <?php endif ?> <?php if (! empty($task['description'])): ?> - <a class="task-description-popover" href="?controller=task&action=description&task_id=<?= $task['id'] ?>"><i class="fa fa-file-text-o" title="<?= t('Description') ?>" data-href="?controller=task&action=description&task_id=<?= $task['id'] ?>"></i></a> + <?php if (! isset($not_editable)): ?> + <a class="task-description-popover" href="?controller=task&action=description&task_id=<?= $task['id'] ?>"><i class="fa fa-file-text-o" title="<?= t('Description') ?>" data-href="?controller=task&action=description&task_id=<?= $task['id'] ?>"></i></a> + <?php else: ?> + <i class="fa fa-file-text-o" title="<?= t('Description') ?>"></i> + <?php endif ?> <?php endif ?> </div> </div> |