Added template hooks for menu on project list
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
<section id="main">
|
<section id="main">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ul>
|
<ul>
|
||||||
|
<?= $this->hook->render('template:projectlist:menubefore', array('project' => $project)) ?>
|
||||||
<?php if ($this->user->hasAccess('ProjectUserOverviewController', 'managers')): ?>
|
<?php if ($this->user->hasAccess('ProjectUserOverviewController', 'managers')): ?>
|
||||||
<li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('Users overview'), 'ProjectUserOverviewController', 'managers') ?></li>
|
<li><i class="fa fa-user fa-fw"></i><?= $this->url->link(t('Users overview'), 'ProjectUserOverviewController', 'managers') ?></li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($this->user->hasAccess('ProjectGanttController', 'show')): ?>
|
<?php if ($this->user->hasAccess('ProjectGanttController', 'show')): ?>
|
||||||
<li><i class="fa fa-sliders fa-fw"></i><?= $this->url->link(t('Projects Gantt chart'), 'ProjectGanttController', 'show') ?></li>
|
<li><i class="fa fa-sliders fa-fw"></i><?= $this->url->link(t('Projects Gantt chart'), 'ProjectGanttController', 'show') ?></li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
<?= $this->hook->render('template:projectlist:menuafter', array('project' => $project)) ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($paginator->isEmpty()): ?>
|
<?php if ($paginator->isEmpty()): ?>
|
||||||
|
|||||||
@@ -218,6 +218,8 @@ List of template hooks:
|
|||||||
| `template:project:integrations` | Integration page in projects settings |
|
| `template:project:integrations` | Integration page in projects settings |
|
||||||
| `template:project:sidebar` | Sidebar in project settings |
|
| `template:project:sidebar` | Sidebar in project settings |
|
||||||
| `template:project-user:sidebar` | Sidebar on project user overview page |
|
| `template:project-user:sidebar` | Sidebar on project user overview page |
|
||||||
|
| `template:projectlist:menubefore` | Projectlist: before menu entries |
|
||||||
|
| `template:projectlist:menuafter` | Projectlist: after menu entries |
|
||||||
| `template:task:layout:top` | Task layout top (after page header) |
|
| `template:task:layout:top` | Task layout top (after page header) |
|
||||||
| `template:task:details:top` | Task summary top |
|
| `template:task:details:top` | Task summary top |
|
||||||
| `template:task:details:bottom` | Task summary bottom |
|
| `template:task:details:bottom` | Task summary bottom |
|
||||||
|
|||||||
Reference in New Issue
Block a user