admin: add exercices stats accordion
This commit is contained in:
parent
f4c74f57d6
commit
b387f011d8
3 changed files with 41 additions and 0 deletions
|
@ -240,6 +240,9 @@ angular.module("FICApp")
|
|||
.factory("ExerciceHistory", function($resource) {
|
||||
return $resource("/api/exercices/:exerciceId/history.json", { exerciceId: '@id' })
|
||||
})
|
||||
.factory("ExerciceStats", function($resource) {
|
||||
return $resource("/api/exercices/:exerciceId/stats.json", { exerciceId: '@id' })
|
||||
})
|
||||
.factory("ExerciceFile", function($resource) {
|
||||
return $resource("/api/exercices/:exerciceId/files/:fileId", { exerciceId: '@idExercice', fileId: '@id' }, {
|
||||
update: {method: 'PUT'}
|
||||
|
@ -1456,6 +1459,10 @@ angular.module("FICApp")
|
|||
}
|
||||
})
|
||||
|
||||
.controller("ExerciceStatsController", function($scope, ExerciceStats, $routeParams) {
|
||||
$scope.stats = ExerciceStats.get({ exerciceId: $routeParams.exerciceId });
|
||||
})
|
||||
|
||||
.controller("ExerciceClaimsController", function($scope, ExerciceClaims, Team, ClaimAssignee, $routeParams, $location) {
|
||||
$scope.claims = ExerciceClaims.query({ exerciceId: $routeParams.exerciceId });
|
||||
$scope.assignees = ClaimAssignee.query();
|
||||
|
|
Reference in a new issue