summaryrefslogtreecommitdiff
path: root/templates/project_index.php
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-02-22 13:37:06 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-02-22 13:37:06 -0500
commita1923d3d7f9276e859d6fd6bee339f0ea00f6544 (patch)
tree84caca943de5d0e016455ea2f6896d0b697fdf05 /templates/project_index.php
parentfd28d50597d4f255ba9514e0fc03c8cb67c86f22 (diff)
Add a page to display completed tasks and add the completion date column for tasks
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>