diff options
Diffstat (limited to 'app/Template/analytic/time_comparison.php')
-rw-r--r-- | app/Template/analytic/time_comparison.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/Template/analytic/time_comparison.php b/app/Template/analytic/time_comparison.php index ee0ee4b6..31d0f53b 100644 --- a/app/Template/analytic/time_comparison.php +++ b/app/Template/analytic/time_comparison.php @@ -15,13 +15,13 @@ <?php if ($paginator->isEmpty()): ?> <p class="alert"><?= t('No tasks found.') ?></p> <?php elseif (! $paginator->isEmpty()): ?> - <chart-project-time-comparison - :metrics='<?= json_encode($metrics, JSON_HEX_APOS)?>' - label-spent="<?= t('Hours Spent') ?>" - label-estimated="<?= t('Hours Estimated') ?>" - label-closed="<?= t('Closed') ?>" - label-open="<?= t('Open') ?>"> - </chart-project-time-comparison> + <?= $this->app->component('chart-project-time-comparison', array( + 'metrics' => $metrics, + 'labelSpent' => t('Hours Spent'), + 'labelEstimated' => t('Hours Estimated'), + 'labelClosed' => t('Closed'), + 'labelOpen' => t('Open'), + )) ?> <table class="table-fixed table-small table-scrolling"> <tr> |