diff --git a/frontend/static/index.html b/frontend/static/index.html
index 6fb3e99f..baeb5682 100644
--- a/frontend/static/index.html
+++ b/frontend/static/index.html
@@ -2,7 +2,7 @@
- Challenge Forensic
+ Challenge Forensic
diff --git a/frontend/static/js/challenge.js b/frontend/static/js/challenge.js
index cbc5456f..bbf92bff 100644
--- a/frontend/static/js/challenge.js
+++ b/frontend/static/js/challenge.js
@@ -414,8 +414,21 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
if (exercicesUrl != undefined)
$rootScope.current_exercice = exercicesUrl[$routeParams.theme + "/" + $routeParams.exercice];
})
+ $scope.$watchGroup(["themes", "current_theme", "current_exercice"], function(newValues) {
+ var themes = newValues[0];
+ var current_theme = newValues[1];
+ var current_exercice = newValues[2];
+ if (themes != undefined && themes[current_theme] != undefined && themes[current_theme].exercices != undefined && themes[current_theme].exercices[current_exercice] != undefined)
+ $rootScope.title = themes[current_theme].name + " > " + themes[current_theme].exercices[current_exercice].title;
+ });
} else {
$rootScope.current_exercice = 0;
+ $scope.$watchGroup(["themes", "current_theme"], function(newValues) {
+ var themes = newValues[0];
+ var current_theme = newValues[1];
+ if (themes != undefined && themes[current_theme] != undefined)
+ $rootScope.title = themes[current_theme].name;
+ });
}
var cbh;