diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-05 16:07:21 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-05 16:07:21 -0400 |
commit | bb8b4c0e36afc05ff5b0cb3ac6465351a696b001 (patch) | |
tree | e7499d04cfe32ed429413c2bbe0c81c33700d36a /app/Template/task/analytics.php | |
parent | 67b9a56469b406b44cd1baad4445ddb6d707794f (diff) |
Add task analytics
Diffstat (limited to 'app/Template/task/analytics.php')
-rw-r--r-- | app/Template/task/analytics.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/Template/task/analytics.php b/app/Template/task/analytics.php new file mode 100644 index 00000000..dbee0e9c --- /dev/null +++ b/app/Template/task/analytics.php @@ -0,0 +1,32 @@ +<div class="page-header"> + <h2><?= t('Analytics') ?></h2> +</div> + +<div class="listing"> + <ul> + <li><?= t('Lead time: ').'<strong>'.$this->dt->duration($lead_time) ?></strong></li> + <li><?= t('Cycle time: ').'<strong>'.$this->dt->duration($cycle_time) ?></strong></li> + </ul> +</div> + +<h3><?= t('Average time spent for each column') ?></h3> +<table class="table-stripped"> + <tr> + <th><?= t('Column') ?></th> + <th><?= t('Average time spent') ?></th> + </tr> + <?php foreach ($column_averages as $column): ?> + <tr> + <td><?= $this->e($column['title']) ?></td> + <td><?= $this->dt->duration($column['time_spent']) ?></td> + </tr> + <?php endforeach ?> +</table> + +<div class="alert alert-info"> + <ul> + <li><?= t('The lead time is the time between the task creation and the completion.') ?></li> + <li><?= t('The cycle time is the time between the start date and the completion.') ?></li> + <li><?= t('If the task is not closed the current time is used.') ?></li> + </ul> +</div>
\ No newline at end of file |