diff options
author | Frédéric Guillot <fred@kanboard.net> | 2017-02-26 09:10:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-26 09:10:24 -0500 |
commit | 28b9d6cdf11cad3d70e831ff2abfc824e1cca244 (patch) | |
tree | 835749fd36d414d521968e622fb1ac7637d8942d | |
parent | 8cd45e8dd24b388d2464f2d05c5acdd28f2855de (diff) | |
parent | e4c1e1bbafd125bb88ad930b7c474d412a632a56 (diff) |
Merge pull request #3075
Added hooks before and after the column header row
-rw-r--r-- | app/Template/board/table_column.php | 5 | ||||
-rw-r--r-- | doc/en_US/plugin-hooks.markdown | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index c2d6b9fc..9d2815ff 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -1,4 +1,7 @@ <!-- column titles --> + +<?= $this->hook->render('template:board:table:column:before-header-row', array('swimlane' => $swimlane)) ?> + <tr class="board-swimlane-columns-<?= $swimlane['id'] ?>"> <?php foreach ($swimlane['columns'] as $column): ?> <th class="board-column-header board-column-header-<?= $column['id'] ?>" data-column-id="<?= $column['id'] ?>"> @@ -89,3 +92,5 @@ </th> <?php endforeach ?> </tr> + +<?= $this->hook->render('template:board:table:column:after-header-row', array('swimlane' => $swimlane)) ?> diff --git a/doc/en_US/plugin-hooks.markdown b/doc/en_US/plugin-hooks.markdown index 23750ff7..dedea934 100644 --- a/doc/en_US/plugin-hooks.markdown +++ b/doc/en_US/plugin-hooks.markdown @@ -201,6 +201,8 @@ List of template hooks: | `template:board:public:task:after-title` | Task in public board: after title | | `template:board:task:footer` | Task in board: footer | | `template:board:task:icons` | Task in board: tooltip icon | +| `template:board:table:column:before-header-row` | Row before board column header | +| `template:board:table:column:after-header-row` | Row after board column header | | `template:board:column:dropdown` | Dropdown menu in board columns | | `template:board:column:header` | Board column header | | `template:board:tooltip:subtasks:header:before-assignee` | Header of Subtask table on tootip before Assignee | |