-
diff --git a/frontend/static/js/app.js b/frontend/static/js/app.js
index 411cf490..df0ea4fd 100644
--- a/frontend/static/js/app.js
+++ b/frontend/static/js/app.js
@@ -92,7 +92,7 @@ angular.module("FICApp")
}
}
})
- .controller("DataController", function($scope, $http, $rootScope, $timeout) {
+ .controller("DataController", function($sce, $scope, $http, $rootScope, $timeout) {
var actMenu = function() {
if ($scope.my && $scope.themes) {
angular.forEach($scope.themes, function(theme, key) {
@@ -139,6 +139,11 @@ angular.module("FICApp")
}
$http.get("/my.json").success(function(my) {
$scope.my = my;
+ angular.forEach($scope.my.exercices, function(exercice, eid) {
+ if (exercice.video_uri) {
+ exercice.video_uri = $sce.trustAsResourceUrl(exercice.video_uri);
+ }
+ });
actMenu();
});
console.log("refresh!");
diff --git a/frontend/static/views/theme.html b/frontend/static/views/theme.html
index 4c8ae68b..b907dc6a 100644
--- a/frontend/static/views/theme.html
+++ b/frontend/static/views/theme.html
@@ -71,7 +71,7 @@
-
Clefs du challenge
+
Solution du challenge
@@ -81,5 +81,8 @@
{{ key.slice(128) }}
{{ key.slice(0, 128) }}
+