Added hooks for plugins
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
<th class="column-20"><?= $paginator->order(t('Project'), 'project_name') ?></th>
|
<th class="column-20"><?= $paginator->order(t('Project'), 'project_name') ?></th>
|
||||||
<th><?= $paginator->order(t('Task'), 'task_name') ?></th>
|
<th><?= $paginator->order(t('Task'), 'task_name') ?></th>
|
||||||
<th><?= $paginator->order(t('Subtask'), \Kanboard\Model\SubtaskModel::TABLE.'.title') ?></th>
|
<th><?= $paginator->order(t('Subtask'), \Kanboard\Model\SubtaskModel::TABLE.'.title') ?></th>
|
||||||
|
<?= $this->hook->render('template:dashboard:subtasks:header', array('values' => $values, 'errors' => $errors, 'paginator' => $paginator)) ?>
|
||||||
<th class="column-20"><?= t('Time tracking') ?></th>
|
<th class="column-20"><?= t('Time tracking') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php foreach ($paginator->getCollection() as $subtask): ?>
|
<?php foreach ($paginator->getCollection() as $subtask): ?>
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<?= $this->subtask->toggleStatus($subtask, $subtask['project_id']) ?>
|
<?= $this->subtask->toggleStatus($subtask, $subtask['project_id']) ?>
|
||||||
</td>
|
</td>
|
||||||
|
<?= $this->hook->render('template:dashboard:subtasks:rows', array('subtask' => $subtask)) ?>
|
||||||
<td>
|
<td>
|
||||||
<?php if (! empty($subtask['time_spent'])): ?>
|
<?php if (! empty($subtask['time_spent'])): ?>
|
||||||
<strong><?= $this->text->e($subtask['time_spent']).'h' ?></strong> <?= t('spent') ?>
|
<strong><?= $this->text->e($subtask['time_spent']).'h' ?></strong> <?= t('spent') ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user