diff options
author | Andrew Berzley <aberzley@berzley.engineering.signatureresearchinc.com> | 2017-11-20 14:45:33 -0500 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2017-11-23 10:51:56 -0800 |
commit | 6c7c73613aeb25cf995f61e0acda7c648a1ddf55 (patch) | |
tree | 2919de469dbc2625fa1624edca0d6ff21e390695 /app/Template/board/table_column.php | |
parent | f889b555bdb84a1ad156a921d3b4bfef1d61fb08 (diff) |
Changed board column headings to show swimlane-column total in bold. Also, board column total to be shown at end of column heading with limit across the sum of all swimlanes.
Diffstat (limited to 'app/Template/board/table_column.php')
-rw-r--r-- | app/Template/board/table_column.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index a9652a2b..f63438c3 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -19,11 +19,10 @@ <?= $this->task->getNewBoardTaskButton($swimlane, $column) ?> <?php endif ?> - <?php if ($swimlane['nb_swimlanes'] > 1 && ! empty($column['column_nb_tasks'])): ?> - <span title="<?= t('Total number of tasks in this column across all swimlanes') ?>" class="board-column-header-task-count"> - (<span><?= $column['column_nb_tasks'] ?></span>) - </span> - <?php endif ?> + + <span title="<?= t('Task count') ?>"> + (<span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span>) + </span> <span class="board-column-title"> <?php if ($not_editable): ?> @@ -75,16 +74,17 @@ </span> - <?php if ($column['task_limit']): ?> - <span title="<?= t('Task limit') ?>"> - (<span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span>/<?= $this->text->e($column['task_limit']) ?>) - </span> - <?php else: ?> - <span title="<?= t('Task count') ?>" class="board-column-header-task-count"> - (<span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span>) - </span> - <?php endif ?> - <?= $this->hook->render('template:board:column:header', array('swimlane' => $swimlane, 'column' => $column)) ?> + <?php if (! empty($column['column_nb_tasks'])): ?> + <span title="<?= t('Total number of tasks in this column across all swimlanes') ?>" class="board-column-header-task-count"> + ( + <span><?= $column['column_nb_tasks'] ?></span> + <?php if ($column['task_limit']): ?> + /<span title="<?= t('Task limit') ?>"><?= $this->text->e($column['task_limit']) ?></span> + <?php endif ?> + ) + </span> + <?php endif; ?> + <?= $this->hook->render('template:board:column:header', array('swimlane' => $swimlane, 'column' => $column)) ?> </div> </th> |