Improve web page title on the task view
This commit is contained in:
@@ -12,6 +12,7 @@ New features:
|
|||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
* Improve web page title on the task view
|
||||||
* Unify task drop-down menu between different views
|
* Unify task drop-down menu between different views
|
||||||
* Improve LDAP user group membership synchronization
|
* Improve LDAP user group membership synchronization
|
||||||
* Category and user filters do not append anymore in search field
|
* Category and user filters do not append anymore in search field
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ class LayoutHelper extends Base
|
|||||||
*/
|
*/
|
||||||
public function task($template, array $params)
|
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'];
|
$params['title'] = $params['task']['project_name'];
|
||||||
return $this->subLayout('task/layout', 'task/sidebar', $template, $params);
|
return $this->subLayout('task/layout', 'task/sidebar', $template, $params);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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="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">
|
<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') ?>
|
<?= $this->hook->render('template:layout:head') ?>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user