summaryrefslogtreecommitdiff
path: root/app/Template/analytic/users.php
blob: 89f00686fd4bcf0e42632cbaf130e22c67fa4ac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div class="page-header">
    <h2><?= t('User repartition') ?></h2>
</div>
<section id="analytic-user-repartition">

<div id="chart" data-url="<?= Helper\u('analytic', 'users', array('project_id' => $project['id'])) ?>"></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>
            <?= Helper\escape($metric['user']) ?>
        </td>
        <td>
            <?= $metric['nb_tasks'] ?>
        </td>
        <td>
            <?= n($metric['percentage']) ?>%
        </td>
    </tr>
    <?php endforeach ?>
</table>

</section>