summaryrefslogtreecommitdiff
path: root/app/Template/task_list/listing.php
blob: 76803a5ce050e23c500907d80d311e19abfebd5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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>