diff options
author | Rafael de Camargo <rafacamargo123@gmail.com> | 2019-06-19 01:37:09 -0300 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2019-06-19 20:41:32 -0700 |
commit | 91ae1feaa1392e59274b3c813404580dd5a8984f (patch) | |
tree | b9116ba50d60b8211950508089ac68f029e46dc0 /app/Template | |
parent | 9ac752a606b12101d6a938927af6fff001192031 (diff) |
Hide one task count when there is only one swimlane
Don't show two task counts per column when there is only one swimlane.
Fixes #4208
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/board/table_column.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index 5b81d709..5515945b 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -19,7 +19,7 @@ <?= $this->task->getNewBoardTaskButton($swimlane, $column) ?> <?php endif ?> - <?php if ($column['nb_tasks'] > 0): ?> + <?php if ($swimlane['nb_swimlanes'] > 1 && $column['nb_tasks'] > 0): ?> <span title="<?= t('Task count') ?>"> (<span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span>) </span> |