Adding open tasks info to taskboard
parent
536d41f58b
commit
ae9a63812c
|
@ -117,6 +117,8 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
@scope.stats.completedPercentage = Math.round(100 * stats.completedPointsSum / stats.totalPointsSum)
|
@scope.stats.completedPercentage = Math.round(100 * stats.completedPointsSum / stats.totalPointsSum)
|
||||||
else
|
else
|
||||||
@scope.stats.completedPercentage = 0
|
@scope.stats.completedPercentage = 0
|
||||||
|
|
||||||
|
@scope.stats.openTasks = stats.total_tasks - stats.completed_tasks
|
||||||
return stats
|
return stats
|
||||||
|
|
||||||
refreshTagsColors: ->
|
refreshTagsColors: ->
|
||||||
|
|
|
@ -15,8 +15,8 @@ div.summary.large-summary
|
||||||
ul
|
ul
|
||||||
li
|
li
|
||||||
span.icon.icon-bulk
|
span.icon.icon-bulk
|
||||||
span.number(ng-bind="stats.total_tasks|default:'--'")
|
span.number(ng-bind="stats.openTasks|default:'--'")
|
||||||
span.description created<br />tasks
|
span.description open<br />tasks
|
||||||
li
|
li
|
||||||
span.number(ng-bind="stats.completed_tasks|default:'--'")
|
span.number(ng-bind="stats.completed_tasks|default:'--'")
|
||||||
span.description closed<br />tasks
|
span.description closed<br />tasks
|
||||||
|
|
Loading…
Reference in New Issue