summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Kergreis <seb.kerro@gmail.com>2016-06-03 13:59:45 -0500
committerSébastien Kergreis <seb.kerro@gmail.com>2016-06-03 13:59:45 -0500
commita9025e5102a3358e106b56d782a0e7dbb295af59 (patch)
tree77b94e2a65d878da68a847357302621d0eb0c10b
parenta27057dd6fbf59e7e88ac19494573a5415d2707e (diff)
Add link in project name
-rw-r--r--app/Template/header.php6
-rw-r--r--app/Template/layout.php1
2 files changed, 6 insertions, 1 deletions
diff --git a/app/Template/header.php b/app/Template/header.php
index 15b70ead..4efd1996 100644
--- a/app/Template/header.php
+++ b/app/Template/header.php
@@ -5,7 +5,11 @@
<?= $this->url->link('K<span>B</span>', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?>
</span>
<span class="title">
- <?= $this->text->e($title) ?>
+ <?php if (isset($project) && ! empty($project)): ?>
+ <?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
+ <?php else: ?>
+ <?= $this->text->e($title) ?>
+ <?php endif ?>
</span>
<?php if (! empty($description)): ?>
<span class="tooltip" title="<?= $this->text->markdownAttribute($description) ?>">
diff --git a/app/Template/layout.php b/app/Template/layout.php
index 9c4d69c5..ebce6ffa 100644
--- a/app/Template/layout.php
+++ b/app/Template/layout.php
@@ -58,6 +58,7 @@
'title' => $title,
'description' => isset($description) ? $description : '',
'board_selector' => isset($board_selector) ? $board_selector : array(),
+ 'project' => isset($project) ? $project : array(),
)) ?>
<section class="page">
<?= $this->app->flashMessage() ?>