From b9ab163344f1ed3a2232c7d273b20d86c25a2735 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 21 Nov 2016 23:16:18 -0500 Subject: Move chart task time column to components --- app/Template/analytic/avg_time_columns.php | 2 +- app/Template/analytic/burndown.php | 2 +- app/Template/analytic/cfd.php | 2 +- app/Template/analytic/lead_cycle_time.php | 4 ++-- app/Template/task/analytics.php | 9 +++++++-- 5 files changed, 12 insertions(+), 7 deletions(-) (limited to 'app') diff --git a/app/Template/analytic/avg_time_columns.php b/app/Template/analytic/avg_time_columns.php index a1690c2a..929331a9 100644 --- a/app/Template/analytic/avg_time_columns.php +++ b/app/Template/analytic/avg_time_columns.php @@ -5,7 +5,7 @@

- app->component('chart-avg-time-column', array( + app->component('chart-project-avg-time-column', array( 'metrics' => $metrics, 'label' => t('Average time spent'), )) ?> diff --git a/app/Template/analytic/burndown.php b/app/Template/analytic/burndown.php index 1a3dd2cc..674c76dd 100644 --- a/app/Template/analytic/burndown.php +++ b/app/Template/analytic/burndown.php @@ -5,7 +5,7 @@

- app->component('chart-burndown', array( + app->component('chart-project-burndown', array( 'metrics' => $metrics, 'labelTotal' => t('Total for all columns'), 'dateFormat' => e('%%Y-%%m-%%d'), diff --git a/app/Template/analytic/cfd.php b/app/Template/analytic/cfd.php index d562a64d..5eb42e82 100644 --- a/app/Template/analytic/cfd.php +++ b/app/Template/analytic/cfd.php @@ -5,7 +5,7 @@

- app->component('chart-cumulative-flow', array( + app->component('chart-project-cumulative-flow', array( 'metrics' => $metrics, 'dateFormat' => e('%%Y-%%m-%%d'), )) ?> diff --git a/app/Template/analytic/lead_cycle_time.php b/app/Template/analytic/lead_cycle_time.php index eeb2c219..d5908096 100644 --- a/app/Template/analytic/lead_cycle_time.php +++ b/app/Template/analytic/lead_cycle_time.php @@ -12,10 +12,10 @@

- app->component('chart-lead-cycle-time', array( + app->component('chart-project-lead-cycle-time', array( 'metrics' => $metrics, 'labelCycle' => t('Cycle Time'), - 'labelTime' => t('Lead Time'), + 'labelLead' => t('Lead Time'), )) ?>
diff --git a/app/Template/task/analytics.php b/app/Template/task/analytics.php index 071f24a7..28c0189c 100644 --- a/app/Template/task/analytics.php +++ b/app/Template/task/analytics.php @@ -16,8 +16,13 @@ -

-
+

+ +app->component('chart-task-time-column', array( + 'metrics' => $time_spent_columns, + 'label' => t('Time spent'), +)) ?> + -- cgit v1.2.3