Add new dashboard template and board selector hooks
This commit is contained in:
@@ -35,6 +35,8 @@ class LayoutHelper extends Base
|
|||||||
if (isset($params['project']['id'])) {
|
if (isset($params['project']['id'])) {
|
||||||
unset($params['board_selector'][$params['project']['id']]);
|
unset($params['board_selector'][$params['project']['id']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->hook->reference('helper:layout:board-selector:list', $params['board_selector']);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->pageLayout($template, $params);
|
return $this->pageLayout($template, $params);
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
<?= $this->hook->render('template:dashboard:show:before-filter-box', array('user' => $user)) ?>
|
||||||
|
|
||||||
<div class="filter-box margin-bottom">
|
<div class="filter-box margin-bottom">
|
||||||
<form method="get" action="<?= $this->url->dir() ?>" class="search">
|
<form method="get" action="<?= $this->url->dir() ?>" class="search">
|
||||||
<?= $this->form->hidden('controller', array('controller' => 'SearchController')) ?>
|
<?= $this->form->hidden('controller', array('controller' => 'SearchController')) ?>
|
||||||
@@ -12,6 +14,8 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?= $this->hook->render('template:dashboard:show:after-filter-box', array('user' => $user)) ?>
|
||||||
|
|
||||||
<?php if (! $project_paginator->isEmpty()): ?>
|
<?php if (! $project_paginator->isEmpty()): ?>
|
||||||
<div class="table-list">
|
<div class="table-list">
|
||||||
<?= $this->render('project_list/header', array('paginator' => $project_paginator)) ?>
|
<?= $this->render('project_list/header', array('paginator' => $project_paginator)) ?>
|
||||||
@@ -24,6 +28,8 @@
|
|||||||
<strong><?= '#'.$project['id'] ?></strong>
|
<strong><?= '#'.$project['id'] ?></strong>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?= $this->hook->render('template:dashboard:project:before-title', array('project' => $project)) ?>
|
||||||
|
|
||||||
<span class="table-list-title <?= $project['is_active'] == 0 ? 'status-closed' : '' ?>">
|
<span class="table-list-title <?= $project['is_active'] == 0 ? 'status-closed' : '' ?>">
|
||||||
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
|
||||||
</span>
|
</span>
|
||||||
@@ -31,6 +37,9 @@
|
|||||||
<?php if ($project['is_private']): ?>
|
<?php if ($project['is_private']): ?>
|
||||||
<i class="fa fa-lock fa-fw" title="<?= t('Personal project') ?>"></i>
|
<i class="fa fa-lock fa-fw" title="<?= t('Personal project') ?>"></i>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?= $this->hook->render('template:dashboard:project:after-title', array('project' => $project)) ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-list-details">
|
<div class="table-list-details">
|
||||||
<?php foreach ($project['columns'] as $column): ?>
|
<?php foreach ($project['columns'] as $column): ?>
|
||||||
|
|||||||
@@ -5,7 +5,12 @@
|
|||||||
<strong><?= '#'.$project['id'] ?></strong>
|
<strong><?= '#'.$project['id'] ?></strong>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?= $this->hook->render('template:dashboard:project:before-title', array('project' => $project)) ?>
|
||||||
|
|
||||||
<span class="table-list-title <?= $project['is_active'] == 0 ? 'status-closed' : '' ?>">
|
<span class="table-list-title <?= $project['is_active'] == 0 ? 'status-closed' : '' ?>">
|
||||||
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
|
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<?= $this->hook->render('template:dashboard:project:after-title', array('project' => $project)) ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user