admin: Rework progression on home page

This commit is contained in:
nemunaire 2024-03-17 11:43:07 +01:00
parent c638789b61
commit b9ded53920
2 changed files with 37 additions and 7 deletions

View file

@ -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) {