summaryrefslogtreecommitdiff
path: root/app/Template/analytic/repartition.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/analytic/repartition.php')
-rw-r--r--app/Template/analytic/repartition.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/Template/analytic/repartition.php b/app/Template/analytic/repartition.php
new file mode 100644
index 00000000..f20b6a0c
--- /dev/null
+++ b/app/Template/analytic/repartition.php
@@ -0,0 +1,29 @@
+<div class="page-header">
+ <h2><?= t('Task distribution') ?></h2>
+</div>
+<section id="analytic-repartition">
+
+<div id="chart" data-url="<?= Helper\u('analytic', 'repartition', array('project_id' => $project['id'])) ?>"></div>
+
+<table>
+ <tr>
+ <th><?= t('Column') ?></th>
+ <th><?= t('Number of tasks') ?></th>
+ <th><?= t('Percentage') ?></th>
+ </tr>
+ <?php foreach ($metrics as $metric): ?>
+ <tr>
+ <td>
+ <?= Helper\escape($metric['column_title']) ?>
+ </td>
+ <td>
+ <?= $metric['nb_tasks'] ?>
+ </td>
+ <td>
+ <?= n($metric['percentage']) ?>%
+ </td>
+ </tr>
+ <?php endforeach ?>
+</table>
+
+</section>