diff --git a/admin/static/js/app.js b/admin/static/js/app.js index 42771667..a4841b8f 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -871,9 +871,53 @@ angular.module("FICApp") type: "table", params: { kind: "levels", levels: [1,2,3,4,5], themes: $scope.themes.map(function(z, i) { return z.id; }), total: true }, }, + { + type: "graph", + params: { teams: [], height: 400, legend: true }, + }, + ]; + angular.forEach($scope.teams, function(team, tid) { + if (team.rank >= 1 && team.rank <= 9) + $scope.display.scenes[1].params.teams.push(tid) + }); + $scope.display.side = [ + { + type: "exercice_follow", + params: { }, + }, + ]; + } + else if (scene == "summary2") { + $scope.display.scenes = [ + { + type: "graph", + params: { teams: [], height: 400, legend: false }, + }, { type: "rank", - params: { limit: 10, which: "general" }, + params: { limit: 10, which: "general", legend: true }, + }, + ]; + angular.forEach($scope.teams, function(team, tid) { + if (team.rank >= 1 && team.rank <= 9) + $scope.display.scenes[0].params.teams.push(tid) + }); + $scope.display.side = [ + { + type: "exercice_follow", + params: { }, + }, + ]; + } + else if (scene == "summary3") { + $scope.display.scenes = [ + { + type: "table", + params: { kind: "levels", levels: [1,2,3,4,5], themes: $scope.themes.map(function(z, i) { return z.id; }), total: true }, + }, + { + type: "rank", + params: { limit: 10, which: "general", legend: false }, }, ]; $scope.display.side = [ diff --git a/admin/static/views/public.html b/admin/static/views/public.html index 17f762e3..45bb5b71 100644 --- a/admin/static/views/public.html +++ b/admin/static/views/public.html @@ -12,6 +12,8 @@ Lancement
Résumé + Résumé 2 + Résumé 3 Free Hint Quarter Happy Hour @@ -67,7 +69,7 @@ -