summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/board/swimlane.php23
1 files changed, 18 insertions, 5 deletions
diff --git a/app/Template/board/swimlane.php b/app/Template/board/swimlane.php
index 5766141e..77bc4114 100644
--- a/app/Template/board/swimlane.php
+++ b/app/Template/board/swimlane.php
@@ -1,6 +1,20 @@
<tr>
<?php if (! $hide_swimlane): ?>
- <td width="10%"></td>
+ <th>
+
+ <?php if ($swimlane['nb_tasks'] > 0): ?>
+ <a href="#" class="board-swimlane-toggle" data-swimlane-id="<?= $swimlane['id'] ?>">
+ <i class="fa fa-minus-circle hide-icon-swimlane-<?= $swimlane['id'] ?>"></i>
+ <i class="fa fa-plus-circle show-icon-swimlane-<?= $swimlane['id'] ?>" style="display: none"></i>
+ </a>
+ <?php endif ?>
+
+ <?= $this->e($swimlane['name']) ?>
+
+ <span title="<?= t('Task count') ?>" class="task-count">
+ (<span><?= $swimlane['nb_tasks'] ?></span>)
+ </span>
+ </th>
<?php endif ?>
<?php foreach ($swimlane['columns'] as $column): ?>
@@ -25,11 +39,10 @@
</th>
<?php endforeach ?>
</tr>
-<tr>
+<tr class="swimlane-row-<?= $swimlane['id'] ?>">
+
<?php if (! $hide_swimlane): ?>
- <th class="board-swimlane-title">
- <?= $this->e($swimlane['name']) ?>
- </th>
+ <th></th>
<?php endif ?>
<?php foreach ($swimlane['columns'] as $column): ?>