diff options
Diffstat (limited to 'app/Template/analytic/tasks.php')
-rw-r--r-- | app/Template/analytic/tasks.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/Template/analytic/tasks.php b/app/Template/analytic/tasks.php new file mode 100644 index 00000000..7ae9c254 --- /dev/null +++ b/app/Template/analytic/tasks.php @@ -0,0 +1,29 @@ +<div class="page-header"> + <h2><?= t('Task distribution') ?></h2> +</div> +<section id="analytic-task-repartition"> + +<div id="chart" data-url="<?= Helper\u('analytic', 'tasks', 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> |