summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-24 10:32:44 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-24 10:32:44 -0400
commitbf22ea4694f6b0aadb6a6975f9324a7138b07278 (patch)
tree302f0c7af219294ce0464e4fdceedccf1a27e042 /app/Template
parent599237b805aae334bb85da44acb738b642017707 (diff)
Display totals on the dashboard for tasks/subtasks/projects
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/app/projects.php2
-rw-r--r--app/Template/app/subtasks.php2
-rw-r--r--app/Template/app/tasks.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/Template/app/projects.php b/app/Template/app/projects.php
index 90e6e67d..27060f7d 100644
--- a/app/Template/app/projects.php
+++ b/app/Template/app/projects.php
@@ -1,4 +1,4 @@
-<h2><?= t('My projects') ?></h2>
+<h2><?= t('My projects') ?> (<?= $paginator->getTotal() ?>)</h2>
<?php if ($paginator->isEmpty()): ?>
<p class="alert"><?= t('Your are not member of any project.') ?></p>
<?php else: ?>
diff --git a/app/Template/app/subtasks.php b/app/Template/app/subtasks.php
index 5afb71b0..d6cbde6f 100644
--- a/app/Template/app/subtasks.php
+++ b/app/Template/app/subtasks.php
@@ -1,4 +1,4 @@
-<h2><?= t('My subtasks') ?></h2>
+<h2><?= t('My subtasks') ?> (<?= $paginator->getTotal() ?>)</h2>
<?php if ($paginator->isEmpty()): ?>
<p class="alert"><?= t('There is nothing assigned to you.') ?></p>
<?php else: ?>
diff --git a/app/Template/app/tasks.php b/app/Template/app/tasks.php
index f05c63ef..6fd7d56d 100644
--- a/app/Template/app/tasks.php
+++ b/app/Template/app/tasks.php
@@ -1,4 +1,4 @@
-<h2><?= t('My tasks') ?></h2>
+<h2><?= t('My tasks') ?> (<?= $paginator->getTotal() ?>)</h2>
<?php if ($paginator->isEmpty()): ?>
<p class="alert"><?= t('There is nothing assigned to you.') ?></p>
<?php else: ?>