qa: Add multiple color on home page
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
nemunaire 2020-09-09 21:17:09 +02:00
commit 95ca255d75
3 changed files with 38 additions and 4 deletions

View file

@ -96,6 +96,9 @@ angular.module("FICApp")
.factory("TodoWorked", function($resource) {
return $resource("api/qa_mywork.json")
})
.factory("ExercicesTested", function($resource) {
return $resource("api/qa_exercices.json")
})
.factory("Team", function($resource) {
return $resource("api/teams/:teamId", { teamId: '@id' }, {
'update': {method: 'PUT'},
@ -222,8 +225,9 @@ angular.module("FICApp")
$scope.v = Version.get();
})
.controller("ToDoController", function($scope, Todo, TodoWorked, $location) {
.controller("ToDoController", function($scope, Todo, TodoWorked, ExercicesTested, $location) {
$scope.todos = Todo.query();
$scope.exo_done = ExercicesTested.get();
$scope.tododone = {}
$scope.work = TodoWorked.query(function(tw) {
tw.forEach(function(t) {