Add collapsible swimlanes (merge and improve pull-request #565)

This commit is contained in:
Frederic Guillot
2015-02-01 11:05:07 -05:00
parent 9a98013736
commit be4e90e319
8 changed files with 139 additions and 32 deletions

View File

@@ -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): ?>