Change order for open sprints

stable
Alejandro Alonso 2015-01-19 09:43:06 +01:00 committed by Jesús Espino
parent 48f1f8f081
commit 1c11dc6d7a
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
sprint.user_stories = _.sortBy(sprint.user_stories, "sprint_order")
@scope.sprints = sprints
@scope.openSprints = _.filter(sprints, (sprint) => not sprint.closed)
@scope.openSprints = _.filter(sprints, (sprint) => not sprint.closed).reverse()
@scope.closedSprints = _.filter(sprints, (sprint) => sprint.closed)
@scope.sprintsCounter = sprints.length
@scope.sprintsById = groupBy(sprints, (x) -> x.id)