summaryrefslogtreecommitdiff
path: root/app/Template/project_overview
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-08 19:12:16 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-08 19:12:16 -0500
commit58d4231f06fbcbc54573504af2c2a4561b9e89ed (patch)
tree828837dd98873c1e83aac9cdd7a9cd367ec899a3 /app/Template/project_overview
parent73dce1279760434e1d1b7a903a0a7500462d6f9c (diff)
Improve columns table in project settings
Diffstat (limited to 'app/Template/project_overview')
-rw-r--r--app/Template/project_overview/columns.php4
-rw-r--r--app/Template/project_overview/show.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/Template/project_overview/columns.php b/app/Template/project_overview/columns.php
index daae9ca7..f1472ff3 100644
--- a/app/Template/project_overview/columns.php
+++ b/app/Template/project_overview/columns.php
@@ -1,7 +1,7 @@
<div class="project-overview-columns">
- <?php foreach ($project['columns'] as $column): ?>
+ <?php foreach ($columns as $column): ?>
<div class="project-overview-column">
- <strong title="<?= t('Task count') ?>"><?= $column['nb_tasks'] ?></strong>
+ <strong title="<?= t('Task count') ?>"><?= $column['nb_open_tasks'] ?></strong>
<small><?= $this->text->e($column['title']) ?></small>
</div>
<?php endforeach ?>
diff --git a/app/Template/project_overview/show.php b/app/Template/project_overview/show.php
index d87b2775..8bd711f0 100644
--- a/app/Template/project_overview/show.php
+++ b/app/Template/project_overview/show.php
@@ -1,6 +1,6 @@
<section id="main">
<?= $this->projectHeader->render($project, 'ProjectOverviewController', 'show') ?>
- <?= $this->render('project_overview/columns', array('project' => $project)) ?>
+ <?= $this->render('project_overview/columns', array('project' => $project, 'columns' => $columns)) ?>
<?= $this->hook->render('template:project-overview:before-description', array('project' => $project)) ?>
<?= $this->render('project_overview/description', array('project' => $project)) ?>
<?= $this->render('project_overview/attachments', array('project' => $project, 'images' => $images, 'files' => $files)) ?>