summaryrefslogtreecommitdiff
path: root/app/Template/analytic
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/analytic')
-rw-r--r--app/Template/analytic/sidebar.php4
-rw-r--r--app/Template/analytic/task_distribution.php (renamed from app/Template/analytic/tasks.php)6
2 files changed, 3 insertions, 7 deletions
diff --git a/app/Template/analytic/sidebar.php b/app/Template/analytic/sidebar.php
index 0f5ee101..1468cee5 100644
--- a/app/Template/analytic/sidebar.php
+++ b/app/Template/analytic/sidebar.php
@@ -1,7 +1,7 @@
<div class="sidebar">
<ul>
- <li <?= $this->app->checkMenuSelection('AnalyticController', 'tasks') ?>>
- <?= $this->url->link(t('Task distribution'), 'AnalyticController', 'tasks', array('project_id' => $project['id'])) ?>
+ <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'])) ?>
diff --git a/app/Template/analytic/tasks.php b/app/Template/analytic/task_distribution.php
index 4bc19784..311e8c65 100644
--- a/app/Template/analytic/tasks.php
+++ b/app/Template/analytic/task_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-task-repartition">
-
- <div id="chart" data-metrics='<?= json_encode($metrics, JSON_HEX_APOS) ?>'></div>
+ <chart-project-task-distribution :metrics='<?= json_encode($metrics, JSON_HEX_APOS) ?>'></chart-project-task-distribution>
<table class="table-striped">
<tr>
@@ -29,6 +27,4 @@
</tr>
<?php endforeach ?>
</table>
-
- </section>
<?php endif ?>