maatma: Fix legend on home page

This commit is contained in:
nemunaire 2022-03-09 21:42:53 +01:00
parent c9a4de7a7d
commit 1e41b709c6
4 changed files with 8 additions and 1 deletions

View file

@ -41,6 +41,7 @@ angular.module("AdLinApp")
})
.controller("StudentsProgressionController", function($scope, $interval, Progression) {
$scope.tuto_progress = tuto_progress;
$scope.tuto_legend = tuto_legend;
$scope.stats = {};
$scope.students = {};
$scope.filterBadgeState = {};
@ -105,6 +106,7 @@ angular.module("AdLinApp")
})
.controller("StudentProgressionController", function($scope, $interval, $http, Student, StudentProgression) {
$scope.tuto_progress = tuto_progress;
$scope.tuto_legend = tuto_legend;
var refreshStd = function() {
var student = Student.get({studentId: $scope.onestudent})
student.$promise.then(function(stdnt) {
@ -165,6 +167,7 @@ angular.module("AdLinApp")
})
.controller("ProgressionController", function($scope, $interval, $http) {
$scope.tuto_progress = tuto_progress;
$scope.tuto_legend = tuto_legend;
$scope.mychallenges = {};
var refreshChal = function() {
$http.get("/api/students/" + $scope.student.id + "/progress").then(function(response) {

View file

@ -112,6 +112,7 @@ angular.module("AdLinApp")
.controller("ProgressionController", function($scope, $interval, $http) {
$scope.tuto_progress = tuto_progress;
$scope.tuto_legend = tuto_legend;
$scope.mychallenges = {};
var refreshChal = function() {