admin: Rework progression on home page
This commit is contained in:
parent
c638789b61
commit
b9ded53920
2 changed files with 37 additions and 7 deletions
|
@ -1994,6 +1994,15 @@ angular.module("FICApp")
|
|||
$scope.exercices[ex.id_exercice] = ex;
|
||||
})
|
||||
});
|
||||
$scope.lenExoArray = [];
|
||||
$scope.themes.$promise.then(function(themes) {
|
||||
if (themes['0'] && themes['0'].exercices.length) {
|
||||
var j = 0;
|
||||
for (var i = themes['0'].exercices.length / 10; i >= 0; i--) {
|
||||
$scope.lenExoArray.push(j++);
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
.controller("ExerciceStatsController", function($scope, ExerciceStats, $routeParams) {
|
||||
|
|
Reference in a new issue