summaryrefslogtreecommitdiff
path: root/app/Template/task_list/listing.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-19 17:08:00 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-19 17:08:00 -0500
commit3b3e8033696e408e699b911c042361d62ce7b7ac (patch)
tree33f2d450bbe40a56703cf22f0d62a67a6f6923f5 /app/Template/task_list/listing.php
parentdc7c7667ec2eb648ca097d00c25a00f7cc9a7d19 (diff)
Redesign task list view
Diffstat (limited to 'app/Template/task_list/listing.php')
-rw-r--r--app/Template/task_list/listing.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/Template/task_list/listing.php b/app/Template/task_list/listing.php
new file mode 100644
index 00000000..76803a5c
--- /dev/null
+++ b/app/Template/task_list/listing.php
@@ -0,0 +1,35 @@
+<section id="main">
+ <?= $this->projectHeader->render($project, 'TaskListController', 'show') ?>
+
+ <?php if ($paginator->isEmpty()): ?>
+ <p class="alert"><?= t('No tasks found.') ?></p>
+ <?php elseif (! $paginator->isEmpty()): ?>
+ <div class="task-list">
+ <div class="task-list-header">
+ <?= $this->render('task_list/sort_menu', array('paginator' => $paginator)) ?>
+ </div>
+ <?php foreach ($paginator->getCollection() as $task): ?>
+ <div class="task-list-row color-<?= $task['color_id'] ?>">
+ <?= $this->render('task_list/task_title', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->render('task_list/task_details', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->render('task_list/task_avatars', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->render('task_list/task_icons', array(
+ 'project' => $project,
+ 'task' => $task,
+ )) ?>
+ </div>
+ <?php endforeach ?>
+ </div>
+
+ <?= $paginator ?>
+ <?php endif ?>
+</section>