diff --git a/frontend/static/js/challenge.js b/frontend/static/js/challenge.js index ed197758..928303fb 100644 --- a/frontend/static/js/challenge.js +++ b/frontend/static/js/challenge.js @@ -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; diff --git a/frontend/static/views/videos.html b/frontend/static/views/videos.html new file mode 100644 index 00000000..32077719 --- /dev/null +++ b/frontend/static/views/videos.html @@ -0,0 +1,10 @@ +