summaryrefslogtreecommitdiff
path: root/app/Template/board/table_tasks.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-26 20:41:14 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-26 20:41:14 -0400
commit6c03925f23a91722471f33d3561543f4180f2b42 (patch)
treeb4cb8461fd83dcb4f52db765a37dffbb783a8887 /app/Template/board/table_tasks.php
parent625a84d174cd94c7e772ed8cb4c95a0b7aeff140 (diff)
Show number of tasks for each column across all swimlanes
Diffstat (limited to 'app/Template/board/table_tasks.php')
-rw-r--r--app/Template/board/table_tasks.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Template/board/table_tasks.php b/app/Template/board/table_tasks.php
index f17e1132..edb4d323 100644
--- a/app/Template/board/table_tasks.php
+++ b/app/Template/board/table_tasks.php
@@ -1,7 +1,10 @@
<!-- task row -->
<tr class="board-swimlane swimlane-row-<?= $swimlane['id'] ?>">
<?php foreach ($swimlane['columns'] as $column): ?>
- <td class="board-column-<?= $column['id'] ?> <?= $column['task_limit'] && $column['nb_tasks'] > $column['task_limit'] ? 'board-task-list-limit' : '' ?>">
+ <td class="
+ board-column-<?= $column['id'] ?>
+ <?= $column['task_limit'] > 0 && $column['nb_tasks'] > $column['task_limit'] ? 'board-task-list-limit' : '' ?>
+ ">
<!-- tasks list -->
<div class="board-task-list board-column-expanded" data-column-id="<?= $column['id'] ?>" data-swimlane-id="<?= $swimlane['id'] ?>" data-task-limit="<?= $column['task_limit'] ?>">