Improve web page title on the task view

This commit is contained in:
Frederic Guillot 2016-05-04 23:16:59 -04:00
parent 65921f81ac
commit 6b78b882d8
3 changed files with 11 additions and 1 deletions

View File

@ -12,6 +12,7 @@ New features:
Improvements:
* Improve web page title on the task view
* Unify task drop-down menu between different views
* Improve LDAP user group membership synchronization
* Category and user filters do not append anymore in search field

View File

@ -60,6 +60,7 @@ class LayoutHelper extends Base
*/
public function task($template, array $params)
{
$params['page_title'] = $params['task']['project_name'].', #'.$params['task']['id'].' - '.$params['task']['title'];
$params['title'] = $params['task']['project_name'];
return $this->subLayout('task/layout', 'task/sidebar', $template, $params);
}

View File

@ -30,7 +30,15 @@
<link rel="apple-touch-icon" sizes="114x114" href="<?= $this->url->dir() ?>assets/img/touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="144x144" href="<?= $this->url->dir() ?>assets/img/touch-icon-ipad-retina.png">
<title><?= isset($title) ? $this->text->e($title) : 'Kanboard' ?></title>
<title>
<?php if (isset($page_title)): ?>
<?= $this->text->e($page_title) ?>
<?php elseif (isset($title)): ?>
<?= $this->text->e($title) ?>
<?php else: ?>
Kanboard
<?php endif ?>
</title>
<?= $this->hook->render('template:layout:head') ?>
</head>