frontend: new page that list videos
This commit is contained in:
parent
31c079701f
commit
5a6b27ff18
2 changed files with 20 additions and 0 deletions
|
@ -13,6 +13,10 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
|
|||
controller: "RankController",
|
||||
templateUrl: "views/rank.html"
|
||||
})
|
||||
.when("/videos", {
|
||||
controller: "VideosController",
|
||||
templateUrl: "views/videos.html"
|
||||
})
|
||||
.when("/:theme", {
|
||||
controller: "ExerciceController",
|
||||
templateUrl: "views/theme.html"
|
||||
|
@ -339,6 +343,12 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
|
|||
}
|
||||
};
|
||||
})
|
||||
.controller("VideosController", function($scope, $rootScope) {
|
||||
$rootScope.current_theme = 0;
|
||||
$rootScope.current_exercice = 0;
|
||||
$rootScope.title = "Vidéos de résolution";
|
||||
$rootScope.authors = "";
|
||||
})
|
||||
.controller("HomeController", function($scope, $rootScope) {
|
||||
$rootScope.current_theme = 0;
|
||||
$rootScope.current_exercice = 0;
|
||||
|
|
Reference in a new issue