diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-09-03 20:45:30 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-09-03 20:45:30 -0400 |
commit | ef8ddb59c94e24383531e52371b70b595dff8e24 (patch) | |
tree | 6fb3884ab6345a5c06a146cb9d3a40cc37c8119a /app/Template/analytic | |
parent | 8c07a0d03e64227c552f3b4530d3a1e1ba53402b (diff) |
Convert user distribution chart to Vue.js component
Diffstat (limited to 'app/Template/analytic')
-rw-r--r-- | app/Template/analytic/sidebar.php | 4 | ||||
-rw-r--r-- | app/Template/analytic/user_distribution.php (renamed from app/Template/analytic/users.php) | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/app/Template/analytic/sidebar.php b/app/Template/analytic/sidebar.php index 1468cee5..ceb57fac 100644 --- a/app/Template/analytic/sidebar.php +++ b/app/Template/analytic/sidebar.php @@ -3,8 +3,8 @@ <li <?= $this->app->checkMenuSelection('AnalyticController', 'taskDistribution') ?>> <?= $this->url->link(t('Task distribution'), 'AnalyticController', 'taskDistribution', array('project_id' => $project['id'])) ?> </li> - <li <?= $this->app->checkMenuSelection('AnalyticController', 'users') ?>> - <?= $this->url->link(t('User repartition'), 'AnalyticController', 'users', array('project_id' => $project['id'])) ?> + <li <?= $this->app->checkMenuSelection('AnalyticController', 'userDistribution') ?>> + <?= $this->url->link(t('User repartition'), 'AnalyticController', 'userDistribution', array('project_id' => $project['id'])) ?> </li> <li <?= $this->app->checkMenuSelection('AnalyticController', 'cfd') ?>> <?= $this->url->link(t('Cumulative flow diagram'), 'AnalyticController', 'cfd', array('project_id' => $project['id'])) ?> diff --git a/app/Template/analytic/users.php b/app/Template/analytic/user_distribution.php index 91bec11b..c3cf4961 100644 --- a/app/Template/analytic/users.php +++ b/app/Template/analytic/user_distribution.php @@ -5,9 +5,7 @@ <?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> + <chart-project-user-distribution :metrics='<?= json_encode($metrics, JSON_HEX_APOS) ?>'></chart-project-user-distribution> <table class="table-striped"> <tr> @@ -29,6 +27,4 @@ </tr> <?php endforeach ?> </table> - - </section> <?php endif ?> |