settings: add title and authors
This commit is contained in:
parent
8d6397d1ac
commit
8d14339dc8
6 changed files with 23 additions and 3 deletions
|
|
@ -90,7 +90,7 @@
|
|||
<div class="page-header">
|
||||
<h1 ng-if="(current_theme)" ng-cloak>{{ themes[current_theme].name }} <small class="authors" ng-if="themes[current_theme].authors">{{ themes[current_theme].authors }}</small></h1>
|
||||
<h1 ng-if="(!current_theme && title)" ng-cloak>{{ title }} <small class="authors" ng-if="authors">{{ authors }}</small></h1>
|
||||
<h1 ng-if="(!current_theme && !title)">Challenge forensic 2017 <small class="authors">Laboratoire SRS, Epita</small></h1>
|
||||
<h1 ng-if="(!current_theme && !title)">{{ settings.title }} <small class="authors">{{ settings.authors }}</small></h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -129,6 +129,9 @@ angular.module("FICApp")
|
|||
$http.get("/stats.json").success(function(stats) {
|
||||
$scope.stats = stats;
|
||||
});
|
||||
$http.get("/settings.json").success(function(settings) {
|
||||
$scope.settings = settings;
|
||||
});
|
||||
$http.get("/themes.json").then(function(response) {
|
||||
if ($scope.lastthemeetag == response.headers().etag)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
<div class="panel panel-success" ng-if="s.type == 'welcome' && !s.params.hide && s.params.kind == 'countdown'">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><strong>Le challenge forensic 2017 est sur le point de commencer !</strong></h3>
|
||||
<h3 class="panel-title"><strong>Le {{ settings.title }} est sur le point de commencer !</strong></h3>
|
||||
</div>
|
||||
<div class="panel-body text-center" style="font-size: 450%;" ng-if="startIn">{{ startIn }}</div>
|
||||
<div class="panel-body text-center" style="font-size: 450%;" ng-if="!startIn">Go, go, go !</div>
|
||||
|
|
|
|||
Reference in a new issue