Add new hooks for plugins

This commit is contained in:
Frederic Guillot 2015-11-21 17:27:29 -05:00
parent 4594325726
commit 9deeaa4ef1
3 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,7 @@ Improvements:
* Improve error handling of plugins
* Use PHP7 function random_bytes() to generate tokens if available
* CSV task export show the assignee name in addition to the assignee username
* Add new hooks for plugins
Internal code refactoring:

View File

@ -1,4 +1,6 @@
<div class="page-header">
<?= $this->hook->render('template:project:header:before', array('project' => $project)) ?>
<div class="dropdown">
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
<ul>
@ -98,4 +100,6 @@
</div>
<?php endif ?>
</div>
<?= $this->hook->render('template:project:header:after', array('project' => $project)) ?>
</div>

View File

@ -142,7 +142,9 @@ List of template hooks:
- `template:layout:head`
- `template:layout:top`
- `template:layout:bottom`
- `template:project:dropdown`
- `template:project:dropdown`: "Actions" menu on left in different project views
- `template:project:header:before`
- `template:project:header:after`
- `template:project-user:sidebar`
- `template:task:sidebar:information`
- `template:task:sidebar:actions`