summaryrefslogtreecommitdiff
path: root/app/Template/dashboard
diff options
context:
space:
mode:
authorLev Lazinskiy <lev@levlaz.org>2016-06-09 01:16:47 -0700
committerLev Lazinskiy <lev@levlaz.org>2016-06-09 01:16:47 -0700
commita5b35954db549ef10b14866548c4c35dd1548943 (patch)
tree18221141c7727ba7e9c1908ed2e566f87b0d9aee /app/Template/dashboard
parenta1e2b0f1b88ed445a9dd960d9431fdbcf983fb33 (diff)
Add total sum of tasks per project in dashboard
fix #885
Diffstat (limited to 'app/Template/dashboard')
-rw-r--r--app/Template/dashboard/projects.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Template/dashboard/projects.php b/app/Template/dashboard/projects.php
index 5bf92980..962e4d83 100644
--- a/app/Template/dashboard/projects.php
+++ b/app/Template/dashboard/projects.php
@@ -9,6 +9,7 @@
<th class="column-5"><?= $paginator->order('Id', 'id') ?></th>
<th class="column-3"><?= $paginator->order('<i class="fa fa-lock fa-fw" title="'.t('Private project').'"></i>', 'is_private') ?></th>
<th class="column-25"><?= $paginator->order(t('Project'), \Kanboard\Model\ProjectModel::TABLE.'.name') ?></th>
+ <th class="column-10"><?= t('Tasks') ?></th>
<th><?= t('Columns') ?></th>
</tr>
<?php foreach ($paginator->getCollection() as $project): ?>
@@ -36,12 +37,16 @@
</span>
<?php endif ?>
</td>
+ <td>
+ <?= $project['nb_active_tasks'] ?>
+ </td>
<td class="dashboard-project-stats">
<?php foreach ($project['columns'] as $column): ?>
<strong title="<?= t('Task count') ?>"><?= $column['nb_tasks'] ?></strong>
<span><?= $this->text->e($column['title']) ?></span>
<?php endforeach ?>
</td>
+
</tr>
<?php endforeach ?>
</table>