Keep swimlane headers at the top
This commit is contained in:
@@ -21,14 +21,16 @@
|
||||
<?php foreach ($swimlanes as $index => $swimlane): ?>
|
||||
<?php if (! ($swimlane['nb_tasks'] === 0 && isset($not_editable))): ?>
|
||||
|
||||
<!-- Note: Columns must render first otherwise we can't collapse them -->
|
||||
<?= $this->render('board/table_column', array(
|
||||
'swimlane' => $swimlane,
|
||||
'not_editable' => isset($not_editable),
|
||||
)) ?>
|
||||
|
||||
<!-- Hide first swimlane-header if project has only 1 swimlane -->
|
||||
<?php if ($index === 0 && $swimlane['nb_swimlanes'] > 1): ?>
|
||||
<!-- Render empty columns to setup the "grid" for collapsing columns (Only once and only if more than 1 swimlane in project) -->
|
||||
<?= $this->render('board/table_column_first', array(
|
||||
'swimlane' => $swimlane,
|
||||
'not_editable' => isset($not_editable),
|
||||
)) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($index === 0 && $swimlane['nb_swimlanes'] > 1): ?>
|
||||
<!-- Only show first swimlane-header if project more than 1 swimlanes -->
|
||||
<?= $this->render('board/table_swimlane', array(
|
||||
'project' => $project,
|
||||
'swimlane' => $swimlane,
|
||||
@@ -44,6 +46,11 @@
|
||||
)) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->render('board/table_column', array(
|
||||
'swimlane' => $swimlane,
|
||||
'not_editable' => isset($not_editable),
|
||||
)) ?>
|
||||
|
||||
<?= $this->render('board/table_tasks', array(
|
||||
'project' => $project,
|
||||
'swimlane' => $swimlane,
|
||||
|
||||
Reference in New Issue
Block a user