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