admin: can force page regeneration
This commit is contained in:
parent
95d60c69e0
commit
fa8c9caaf0
5 changed files with 14 additions and 3 deletions
|
|
@ -228,6 +228,10 @@ angular.module("FICApp")
|
|||
$location.url("/");
|
||||
});
|
||||
}
|
||||
$scope.regenerate = function() {
|
||||
this.config.generation = (new Date()).toISOString();
|
||||
$scope.saveSettings();
|
||||
}
|
||||
$scope.launchChallenge = function() {
|
||||
var ts = Date.now() - Date.now() % 60000;
|
||||
var d = new Date(ts + 120000);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<h2>Paramètres</h2>
|
||||
<h2>Paramètres<a ng-click="regenerate()" class="pull-right btn btn-info" role="button"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Regénérer les fichiers statiques</a></h2>
|
||||
|
||||
<form ng-submit="saveSettings()" class="form-horizontal well">
|
||||
|
||||
<input type="hidden" class="form-control" id="lastRegeneration" ng-model="config.generation">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="startTime" class="col-sm-2 control-label">Début du challenge</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
|
|||
Reference in a new issue