Add link in project name

This commit is contained in:
Sébastien Kergreis 2016-06-03 13:59:45 -05:00
parent a27057dd6f
commit a9025e5102
2 changed files with 6 additions and 1 deletions

View File

@ -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) ?>">

View File

@ -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() ?>