From bf22ea4694f6b0aadb6a6975f9324a7138b07278 Mon Sep 17 00:00:00 2001
From: Frederic Guillot <fred@kanboard.net>
Date: Wed, 24 Jun 2015 10:32:44 -0400
Subject: Display totals on the dashboard for tasks/subtasks/projects

---
 app/Locale/fr_FR/translations.php | 2 +-
 app/Template/app/projects.php     | 2 +-
 app/Template/app/subtasks.php     | 2 +-
 app/Template/app/tasks.php        | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

(limited to 'app')

diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php
index 461f8566..246c2471 100644
--- a/app/Locale/fr_FR/translations.php
+++ b/app/Locale/fr_FR/translations.php
@@ -501,7 +501,7 @@ return array(
     'Started on %B %e, %Y' => 'Commençé le %d/%m/%Y',
     'Start date' => 'Date de début',
     'Time estimated' => 'Temps estimé',
-    'There is nothing assigned to you.' => 'Aucune tâche assignée pour vous.',
+    'There is nothing assigned to you.' => 'Il n\'y a rien d\'assigné pour vous.',
     'My tasks' => 'Mes tâches',
     'Activity stream' => 'Flux d\'activité',
     'Dashboard' => 'Tableau de bord',
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: ?>
-- 
cgit v1.2.3