2014-12-22 19:15:38 +01:00
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Task distribution') ?></h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if (empty($metrics)): ?>
|
|
|
|
<p class="alert"><?= t('Not enough data to show the graph.') ?></p>
|
|
|
|
<?php else: ?>
|
|
|
|
<section id="analytic-task-repartition">
|
|
|
|
|
2015-08-16 17:04:56 +02:00
|
|
|
<div id="chart" data-metrics='<?= json_encode($metrics) ?>'></div>
|
2014-12-22 19:15:38 +01:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th><?= t('Column') ?></th>
|
|
|
|
<th><?= t('Number of tasks') ?></th>
|
|
|
|
<th><?= t('Percentage') ?></th>
|
|
|
|
</tr>
|
|
|
|
<?php foreach ($metrics as $metric): ?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->e($metric['column_title']) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?= $metric['nb_tasks'] ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?= n($metric['percentage']) ?>%
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
<?php endif ?>
|