mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
34 lines
875 B
PHP
34 lines
875 B
PHP
<div class="page-header">
|
|
<h2><?= t('User repartition') ?></h2>
|
|
</div>
|
|
|
|
<?php if (empty($metrics)): ?>
|
|
<p class="alert"><?= t('Not enough data to show the graph.') ?></p>
|
|
<?php else: ?>
|
|
<section id="analytic-user-repartition">
|
|
|
|
<div id="chart" data-metrics='<?= json_encode($metrics) ?>'></div>
|
|
|
|
<table>
|
|
<tr>
|
|
<th><?= t('User') ?></th>
|
|
<th><?= t('Number of tasks') ?></th>
|
|
<th><?= t('Percentage') ?></th>
|
|
</tr>
|
|
<?php foreach ($metrics as $metric): ?>
|
|
<tr>
|
|
<td>
|
|
<?= $this->e($metric['user']) ?>
|
|
</td>
|
|
<td>
|
|
<?= $metric['nb_tasks'] ?>
|
|
</td>
|
|
<td>
|
|
<?= n($metric['percentage']) ?>%
|
|
</td>
|
|
</tr>
|
|
<?php endforeach ?>
|
|
</table>
|
|
|
|
</section>
|
|
<?php endif ?>
|