summaryrefslogtreecommitdiff
path: root/app/Template/task_list/header.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-19 17:28:26 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-19 17:28:32 -0500
commitb5c56d4239c1f4e5c1b7894803c899b595797a26 (patch)
tree641670dde78bb03d9b3ae804fe24930d84c9eaa4 /app/Template/task_list/header.php
parent3b3e8033696e408e699b911c042361d62ce7b7ac (diff)
Display task count in table header
Diffstat (limited to 'app/Template/task_list/header.php')
-rw-r--r--app/Template/task_list/header.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Template/task_list/header.php b/app/Template/task_list/header.php
new file mode 100644
index 00000000..c0f9df96
--- /dev/null
+++ b/app/Template/task_list/header.php
@@ -0,0 +1,12 @@
+<div class="task-list-header">
+ <div class="task-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="task-list-header-menu">
+ <?= $this->render('task_list/sort_menu', array('paginator' => $paginator)) ?>
+ </div>
+</div> \ No newline at end of file