summaryrefslogtreecommitdiff
path: root/app/Template/analytic/users.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-03 20:45:30 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-03 20:45:30 -0400
commitef8ddb59c94e24383531e52371b70b595dff8e24 (patch)
tree6fb3884ab6345a5c06a146cb9d3a40cc37c8119a /app/Template/analytic/users.php
parent8c07a0d03e64227c552f3b4530d3a1e1ba53402b (diff)
Convert user distribution chart to Vue.js component
Diffstat (limited to 'app/Template/analytic/users.php')
-rw-r--r--app/Template/analytic/users.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/app/Template/analytic/users.php b/app/Template/analytic/users.php
deleted file mode 100644
index 91bec11b..00000000
--- a/app/Template/analytic/users.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<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, JSON_HEX_APOS) ?>'></div>
-
- <table class="table-striped">
- <tr>
- <th><?= t('User') ?></th>
- <th><?= t('Number of tasks') ?></th>
- <th><?= t('Percentage') ?></th>
- </tr>
- <?php foreach ($metrics as $metric): ?>
- <tr>
- <td>
- <?= $this->text->e($metric['user']) ?>
- </td>
- <td>
- <?= $metric['nb_tasks'] ?>
- </td>
- <td>
- <?= n($metric['percentage']) ?>%
- </td>
- </tr>
- <?php endforeach ?>
- </table>
-
- </section>
-<?php endif ?>