summaryrefslogtreecommitdiff
path: root/app/Template/board/table_container.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-26 19:04:58 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-26 19:04:58 -0400
commit16e14b76a6dc2eca028fa08c0db9a9651f16bfd9 (patch)
treec85bf9380979ffbe64dc1831ebf586c97ad0b7ac /app/Template/board/table_container.php
parent53f4b410088258cf76162543909db025ecb62656 (diff)
Change swimlane layout to save space on the screen
Diffstat (limited to 'app/Template/board/table_container.php')
-rw-r--r--app/Template/board/table_container.php24
1 files changed, 20 insertions, 4 deletions
diff --git a/app/Template/board/table_container.php b/app/Template/board/table_container.php
index 98b40eb4..b20426a6 100644
--- a/app/Template/board/table_container.php
+++ b/app/Template/board/table_container.php
@@ -13,18 +13,34 @@
>
<?php endif ?>
- <?php foreach ($swimlanes as $swimlane): ?>
+ <?php $nb_swimlanes = count($swimlanes) ?>
+ <?php foreach ($swimlanes as $index => $swimlane): ?>
<?php if (empty($swimlane['columns'])): ?>
<p class="alert alert-error"><?= t('There is no column in your project!') ?></p>
<?php break ?>
<?php else: ?>
- <?= $this->render('board/table_swimlane', array(
+ <?php if ($index === 0): ?>
+ <?= $this->render('board/table_column', array(
+ 'swimlane' => $swimlane,
+ 'not_editable' => isset($not_editable),
+ )) ?>
+ <?php endif ?>
+
+ <?php if ($nb_swimlanes > 1): ?>
+ <?= $this->render('board/table_swimlane', array(
+ 'project' => $project,
+ 'swimlane' => $swimlane,
+ 'not_editable' => isset($not_editable),
+ )) ?>
+ <?php endif ?>
+
+ <?= $this->render('board/table_tasks', array(
'project' => $project,
'swimlane' => $swimlane,
- 'board_highlight_period' => $board_highlight_period,
- 'hide_swimlane' => count($swimlanes) === 1,
'not_editable' => isset($not_editable),
+ 'board_highlight_period' => $board_highlight_period,
)) ?>
+
<?php endif ?>
<?php endforeach ?>
</table>