Keep swimlane headers at the top

This commit is contained in:
Manfred Hoffmann
2021-04-24 05:18:46 +02:00
committed by GitHub
parent e41254ed74
commit 3c6df7a6c6
4 changed files with 45 additions and 8 deletions

View File

@@ -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,