summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-07-14 20:06:36 -0230
committerFrédéric Guillot <fred@kanboard.net>2014-07-14 20:06:36 -0230
commit04628e1c133f0cb344a32baec53342264957f57d (patch)
tree1871b860eda58a2c676bf85ed0b0a7b588e72e05
parentb84f60babc0e3ebb904af04b8139bbd048895e44 (diff)
Show task count in each column even if no limit is set (merge pull-request #169)
-rw-r--r--app/Templates/board_show.php4
-rw-r--r--assets/css/app.css5
2 files changed, 9 insertions, 0 deletions
diff --git a/app/Templates/board_show.php b/app/Templates/board_show.php
index d5f31413..2d857497 100644
--- a/app/Templates/board_show.php
+++ b/app/Templates/board_show.php
@@ -15,6 +15,10 @@
<?= Helper\escape($column['task_limit']) ?>
)
</span>
+ <?php else: ?>
+ <span title="<?= t('Task count') ?>" class="task-count">
+ (<span id="task-number-column-<?= $column['id'] ?>"><?= count($column['tasks']) ?></span>)
+ </span>
<?php endif ?>
</th>
<?php endforeach ?>
diff --git a/assets/css/app.css b/assets/css/app.css
index b35ce05e..e5db0885 100644
--- a/assets/css/app.css
+++ b/assets/css/app.css
@@ -564,6 +564,11 @@ a.filter-on {
line-height: 70%;
}
+.task-count {
+ color: #888;
+ font-weight: normal;
+}
+
/* task inside the board */
.task-board {
position: relative;