summaryrefslogtreecommitdiff
path: root/app/Template/task/layout.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-25 17:41:41 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-25 17:41:41 -0400
commit354e37971d43d3b62d8f4e2a23eff09e88525627 (patch)
treeab7ded1870bbdec219909cf5f5c9d50549d2c9a1 /app/Template/task/layout.php
parent13d5bd8e48bd6c0109d1272da58a8879bf9a6737 (diff)
Unification of project header
Diffstat (limited to 'app/Template/task/layout.php')
-rw-r--r--app/Template/task/layout.php22
1 files changed, 1 insertions, 21 deletions
diff --git a/app/Template/task/layout.php b/app/Template/task/layout.php
index ca27fd4f..52db5d1b 100644
--- a/app/Template/task/layout.php
+++ b/app/Template/task/layout.php
@@ -1,25 +1,5 @@
<section id="main">
- <div class="page-header">
- <ul>
- <li>
- <?= $this->render('task/menu', array('task' => $task)) ?>
- </li>
- <li>
- <i class="fa fa-th fa-fw"></i>
- <?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $task['project_id']), false, '', '', false, $task['swimlane_id'] != 0 ? 'swimlane-'.$task['swimlane_id'] : '') ?>
- </li>
- <li>
- <i class="fa fa-calendar fa-fw"></i>
- <?= $this->url->link(t('Back to the calendar'), 'calendar', 'show', array('project_id' => $task['project_id'])) ?>
- </li>
- <?php if ($this->user->hasProjectAccess('ProjectEdit', 'edit', $task['project_id'])): ?>
- <li>
- <i class="fa fa-cog fa-fw"></i>
- <?= $this->url->link(t('Project settings'), 'project', 'show', array('project_id' => $task['project_id'])) ?>
- </li>
- <?php endif ?>
- </ul>
- </div>
+ <?= $this->projectHeader->render($project, 'Listing', 'show') ?>
<section
class="sidebar-container" id="task-view"
data-edit-url="<?= $this->url->href('taskmodification', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"