Add new dashboard template and board selector hooks

This commit is contained in:
Timo
2020-03-03 05:29:45 +01:00
committed by GitHub
parent b39f857dc4
commit 86dd0a7a75
3 changed files with 16 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ class LayoutHelper extends Base
if (isset($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);

View File

@@ -1,3 +1,5 @@
<?= $this->hook->render('template:dashboard:show:before-filter-box', array('user' => $user)) ?>
<div class="filter-box margin-bottom">
<form method="get" action="<?= $this->url->dir() ?>" class="search">
<?= $this->form->hidden('controller', array('controller' => 'SearchController')) ?>
@@ -12,6 +14,8 @@
</form>
</div>
<?= $this->hook->render('template:dashboard:show:after-filter-box', array('user' => $user)) ?>
<?php if (! $project_paginator->isEmpty()): ?>
<div class="table-list">
<?= $this->render('project_list/header', array('paginator' => $project_paginator)) ?>
@@ -24,6 +28,8 @@
<strong><?= '#'.$project['id'] ?></strong>
<?php endif ?>
<?= $this->hook->render('template:dashboard:project:before-title', array('project' => $project)) ?>
<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'])) ?>
</span>
@@ -31,6 +37,9 @@
<?php if ($project['is_private']): ?>
<i class="fa fa-lock fa-fw" title="<?= t('Personal project') ?>"></i>
<?php endif ?>
<?= $this->hook->render('template:dashboard:project:after-title', array('project' => $project)) ?>
</div>
<div class="table-list-details">
<?php foreach ($project['columns'] as $column): ?>

View File

@@ -5,7 +5,12 @@
<strong><?= '#'.$project['id'] ?></strong>
<?php endif ?>
<?= $this->hook->render('template:dashboard:project:before-title', array('project' => $project)) ?>
<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'])) ?>
</span>
<?= $this->hook->render('template:dashboard:project:after-title', array('project' => $project)) ?>
</div>