summaryrefslogtreecommitdiff
path: root/app/Template/board/table_container.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-26 21:14:04 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-26 21:14:04 -0400
commit66514aa530cfb3b84f01e5eb578d35b4178e651e (patch)
tree4ea1a92f87451e8ca01b446366cd695324784ac7 /app/Template/board/table_container.php
parent0b1da8d61c82d46ef54c3d7b699694baaeed83cf (diff)
Do not show empty swimlanes in public view
Diffstat (limited to 'app/Template/board/table_container.php')
-rw-r--r--app/Template/board/table_container.php22
1 files changed, 13 insertions, 9 deletions
diff --git a/app/Template/board/table_container.php b/app/Template/board/table_container.php
index fb9212a7..83587c44 100644
--- a/app/Template/board/table_container.php
+++ b/app/Template/board/table_container.php
@@ -25,20 +25,24 @@
)) ?>
<?php endif ?>
- <?php if ($swimlane['nb_swimlanes'] > 1): ?>
- <?= $this->render('board/table_swimlane', array(
+ <?php if (! ($swimlane['nb_tasks'] === 0 && isset($not_editable))): ?>
+
+ <?php if ($swimlane['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,
'not_editable' => isset($not_editable),
+ 'board_highlight_period' => $board_highlight_period,
)) ?>
- <?php endif ?>
- <?= $this->render('board/table_tasks', array(
- 'project' => $project,
- 'swimlane' => $swimlane,
- 'not_editable' => isset($not_editable),
- 'board_highlight_period' => $board_highlight_period,
- )) ?>
+ <?php endif ?>
<?php endif ?>
<?php endforeach ?>