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/Formatter | |
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/Formatter')
-rw-r--r-- | app/Formatter/BoardSwimlaneFormatter.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Formatter/BoardSwimlaneFormatter.php b/app/Formatter/BoardSwimlaneFormatter.php index 18db259d..17710fc3 100644 --- a/app/Formatter/BoardSwimlaneFormatter.php +++ b/app/Formatter/BoardSwimlaneFormatter.php @@ -97,6 +97,13 @@ class BoardSwimlaneFormatter extends BaseFormatter implements FormatterInterface $this->calculateStatsByColumnAcrossSwimlanes($swimlane['columns']); } + foreach($this->swimlanes as &$swimlane) { + foreach($swimlane['columns'] as $columnIndex => &$column) { + $column['column_nb_tasks'] = $this->swimlanes[0]['columns'][$columnIndex]['column_nb_tasks']; + $column['column_nb_score'] = $this->swimlanes[0]['columns'][$columnIndex]['column_score']; + } + } + return $this->swimlanes; } |