add new hooks #1742
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
<?= $this->hook->render('template:task:show:top', array('task' => $task, 'project' => $project)) ?>
|
||||
|
||||
<?= $this->render('task/details', array(
|
||||
'task' => $task,
|
||||
'project' => $project,
|
||||
'editable' => $this->user->hasProjectAccess('taskmodification', 'edit', $project['id']),
|
||||
)) ?>
|
||||
|
||||
<?= $this->hook->render('template:task:show:before-description', array('task' => $task, 'project' => $project)) ?>
|
||||
|
||||
<?= $this->render('task/description', array('task' => $task)) ?>
|
||||
|
||||
<?= $this->hook->render('template:task:show:before-subtasks', array('task' => $task, 'project' => $project)) ?>
|
||||
|
||||
<?= $this->render('subtask/show', array(
|
||||
'task' => $task,
|
||||
'subtasks' => $subtasks,
|
||||
@@ -14,6 +20,8 @@
|
||||
'editable' => true,
|
||||
)) ?>
|
||||
|
||||
<?= $this->hook->render('template:task:show:before-tasklinks', array('task' => $task, 'project' => $project)) ?>
|
||||
|
||||
<?= $this->render('tasklink/show', array(
|
||||
'task' => $task,
|
||||
'links' => $links,
|
||||
@@ -22,17 +30,25 @@
|
||||
'is_public' => false,
|
||||
)) ?>
|
||||
|
||||
<?= $this->hook->render('template:task:show:before-timetracking', array('task' => $task, 'project' => $project)) ?>
|
||||
|
||||
<?= $this->render('task/time_tracking_summary', array('task' => $task)) ?>
|
||||
|
||||
<?= $this->hook->render('template:task:show:before-attachements', array('task' => $task, 'project' => $project)) ?>
|
||||
|
||||
<?= $this->render('task_file/show', array(
|
||||
'task' => $task,
|
||||
'files' => $files,
|
||||
'images' => $images
|
||||
)) ?>
|
||||
|
||||
<?= $this->hook->render('template:task:show:before-comments', array('task' => $task, 'project' => $project)) ?>
|
||||
|
||||
<?= $this->render('task/comments', array(
|
||||
'task' => $task,
|
||||
'comments' => $comments,
|
||||
'project' => $project,
|
||||
'editable' => $this->user->hasProjectAccess('comment', 'edit', $project['id']),
|
||||
)) ?>
|
||||
|
||||
<?= $this->hook->render('template:task:show:bottom', array('task' => $task, 'project' => $project)) ?>
|
||||
|
||||
@@ -152,7 +152,7 @@ Template names without prefix are core templates.
|
||||
List of template hooks:
|
||||
|
||||
| Hook | Description |
|
||||
|--------------------------------------|----------------------------------------------------|
|
||||
|------------------------------------------|----------------------------------------------------|
|
||||
| `template:analytic:sidebar` | Sidebar on analytic pages |
|
||||
| `template:app:filters-helper:before` | Filter helper dropdown (top) |
|
||||
| `template:app:filters-helper:after` | Filter helper dropdown (bottom) |
|
||||
@@ -176,6 +176,14 @@ List of template hooks:
|
||||
| `template:task:dropdown` | Task dropdown menu in listing pages |
|
||||
| `template:task:sidebar` | Sidebar on task page |
|
||||
| `template:task:form:right-column` | Right column in task form |
|
||||
| `template:task:show:top ` | Show task page: top |
|
||||
| `template:task:show:bottom` | Show task page: bottom |
|
||||
| `template:task:show:before-description` | Show task page: before description |
|
||||
| `template:task:show:before-tasklinks` | Show task page: before tasklinks |
|
||||
| `template:task:show:before-subtasks` | Show task page: before subtasks |
|
||||
| `template:task:show:before-timetracking` | Show task page: before timetracking |
|
||||
| `template:task:show:before-attachements` | Show task page: before attachments |
|
||||
| `template:task:show:before-comments` | Show task page: before comments |
|
||||
| `template:user:authentication:form` | "Edit authentication" form in user profile |
|
||||
| `template:user:create-remote:form` | "Create remote user" form |
|
||||
| `template:user:external` | "External authentication" page in user profile |
|
||||
|
||||
Reference in New Issue
Block a user