Improve project page titles

This commit is contained in:
Frederic Guillot
2016-07-24 13:55:35 -04:00
parent a3b4b25df2
commit 9d6715ddc0
10 changed files with 36 additions and 18 deletions

View File

@@ -156,6 +156,10 @@ class LayoutHelper extends Base
*/
public function analytic($template, array $params)
{
if (isset($params['project']['name'])) {
$params['title'] = $params['project']['name'].' > '.$params['title'];
}
return $this->subLayout('analytic/layout', 'analytic/sidebar', $template, $params);
}