summaryrefslogtreecommitdiff
path: root/app/Template/task_list/header.php
blob: 6501a9196861cee8aa935dd99290f24f30b3c206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="table-list-header">
    <div class="table-list-header-count">
        <?php if ($paginator->getTotal() > 1): ?>
            <?= t('%d tasks', $paginator->getTotal()) ?>
        <?php else: ?>
            <?= t('%d task', $paginator->getTotal()) ?>
        <?php endif ?>
    </div>
    <div class="table-list-header-menu">
        <?php if ($this->user->hasSubtaskListActivated()): ?>
            <?= $this->url->icon('tasks', t('Hide subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'hide_subtasks' => 1)) ?>
        <?php else: ?>
            <?= $this->url->icon('tasks', t('Show subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'show_subtasks' => 1)) ?>
        <?php endif ?>

        <?= $this->render('task_list/sort_menu', array('paginator' => $paginator)) ?>
    </div>
</div>