Analytics: add the first graph (task repartition)

This commit is contained in:
Frédéric Guillot
2014-11-09 17:59:02 -05:00
parent 3df63e051f
commit e89ba5e9e6
29 changed files with 392 additions and 10 deletions

View File

@@ -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>