Add new analytic page: Average time spent into each column

This commit is contained in:
Frederic Guillot
2015-07-05 21:22:31 -04:00
parent bb8b4c0e36
commit 663a1c20e6
11 changed files with 254 additions and 46 deletions

View File

@@ -3,7 +3,7 @@
namespace Controller;
/**
* Project Anaytic controller
* Project Analytic controller
*
* @package controller
* @author Frederic Guillot
@@ -26,6 +26,22 @@ class Analytic extends Base
return $this->template->layout('analytic/layout', $params);
}
/**
* Show average time spent by column
*
* @access public
*/
public function averageTimeByColumn()
{
$project = $this->getProject();
$this->response->html($this->layout('analytic/avg_time_columns', array(
'project' => $project,
'metrics' => $this->projectAnalytic->getAverageTimeSpentByColumn($project['id']),
'title' => t('Average time spent into each column for "%s"', $project['name']),
)));
}
/**
* Show tasks distribution graph
*