summaryrefslogtreecommitdiff
path: root/app/Template/board/task_public.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-14 21:03:25 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-14 21:03:25 -0500
commit7c4bdea324d8074ffcc3fa353fcfd85ee8066634 (patch)
tree2542a985fd47d3dce14c06e6872febb34751d302 /app/Template/board/task_public.php
parent2eec0185ab2af2bd51356423152ec4a4374bb78e (diff)
Add board filter: collapse/expand tasks
Diffstat (limited to 'app/Template/board/task_public.php')
-rw-r--r--app/Template/board/task_public.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/Template/board/task_public.php b/app/Template/board/task_public.php
new file mode 100644
index 00000000..4e3ad18c
--- /dev/null
+++ b/app/Template/board/task_public.php
@@ -0,0 +1,26 @@
+<div class="task-board color-<?= $task['color_id'] ?> <?= $task['date_modification'] > time() - $board_highlight_period ? 'task-board-recent' : '' ?>">
+
+ <?= $this->a('#'.$task['id'], 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?>
+
+ <?php if ($task['reference']): ?>
+ <span class="task-board-reference" title="<?= t('Reference') ?>">
+ (<?= $task['reference'] ?>)
+ </span>
+ <?php endif ?>
+
+ &nbsp;-&nbsp;
+
+ <span class="task-board-user">
+ <?php if (! empty($task['owner_id'])): ?>
+ <?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?>
+ <?php else: ?>
+ <span class="task-board-nobody"><?= t('Nobody assigned') ?></span>
+ <?php endif ?>
+ </span>
+
+ <div class="task-board-title">
+ <?= $this->a($this->e($task['title']), 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?>
+ </div>
+
+ <?= $this->render('board/task_footer', array('task' => $task, 'categories' => $categories)) ?>
+</div> \ No newline at end of file