From b5c56d4239c1f4e5c1b7894803c899b595797a26 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 19 Feb 2017 17:28:26 -0500 Subject: Display task count in table header --- app/Template/task_list/header.php | 12 ++++++++++++ app/Template/task_list/listing.php | 4 +--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 app/Template/task_list/header.php (limited to 'app/Template/task_list') 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 @@ +
+
+ getTotal() > 1): ?> + getTotal()) ?> + + getTotal()) ?> + +
+
+ render('task_list/sort_menu', array('paginator' => $paginator)) ?> +
+
\ No newline at end of file diff --git a/app/Template/task_list/listing.php b/app/Template/task_list/listing.php index 76803a5c..793c13d4 100644 --- a/app/Template/task_list/listing.php +++ b/app/Template/task_list/listing.php @@ -5,9 +5,7 @@

isEmpty()): ?>
-
- render('task_list/sort_menu', array('paginator' => $paginator)) ?> -
+ render('task_list/header', array('paginator' => $paginator)) ?> getCollection() as $task): ?>
render('task_list/task_title', array( -- cgit v1.2.3