summaryrefslogtreecommitdiff
path: root/templates/project_index.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/project_index.php')
-rw-r--r--templates/project_index.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/templates/project_index.php b/templates/project_index.php
index 0fc2468c..d144e41f 100644
--- a/templates/project_index.php
+++ b/templates/project_index.php
@@ -31,7 +31,21 @@
<?= $project['is_active'] ? t('Active') : t('Inactive') ?>
</td>
<td>
- <?= t('%d tasks on the board', $project['nb_active_tasks']) ?>, <?= t('%d tasks in total', $project['nb_tasks']) ?>
+ <?php if ($project['nb_tasks'] > 0): ?>
+
+ <?php if ($project['nb_active_tasks'] > 0): ?>
+ <a href="?controller=board&amp;action=show&amp;project_id=<?= $project['id'] ?>"><?= t('%d tasks on the board', $project['nb_active_tasks']) ?></a>,
+ <?php endif ?>
+
+ <?php if ($project['nb_inactive_tasks'] > 0): ?>
+ <a href="?controller=project&amp;action=tasks&amp;project_id=<?= $project['id'] ?>"><?= t('%d closed tasks', $project['nb_inactive_tasks']) ?></a>,
+ <?php endif ?>
+
+ <?= t('%d tasks in total', $project['nb_tasks']) ?>
+
+ <?php else: ?>
+ <?= t('no task for this project') ?>
+ <?php endif ?>
</td>
<td>
<ul>