settings: add VideosLink parameter
This commit is contained in:
parent
6034246015
commit
7da6f5cd0c
|
@ -20,6 +20,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group row">
|
||||||
|
<label for="challengeVideo" class="col-sm-2 col-form-label col-form-label-sm">Lien vidéos de résolution</label>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input type="text" class="form-control form-control-sm" id="challengeVideo" ng-model="config.videoslink">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label for="startTime" class="col-sm-2 col-form-label col-form-label-sm">Début du challenge</label>
|
<label for="startTime" class="col-sm-2 col-form-label col-form-label-sm">Début du challenge</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<a class="btn btn-light" href="/rank">
|
<a class="btn btn-light" href="/rank">
|
||||||
<span class="glyphicon glyphicon-list"></span> Classement
|
<span class="glyphicon glyphicon-list"></span> Classement
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-light disabled" href="https://www.youtube.com/playlist?list=PLSJ8QLhKMtQv7jRhdAn9wXSMYTsvqfieX">
|
<a class="btn btn-light" ng-class="{'disabled': settings.videoslink == ''}" href="{{ settings.videoslink }}">
|
||||||
<span class="glyphicon glyphicon-blackboard"></span> Vidéos
|
<span class="glyphicon glyphicon-blackboard"></span> Vidéos
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -24,6 +24,8 @@ type FICSettings struct {
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
// Authors is the group name of people making the challenge.
|
// Authors is the group name of people making the challenge.
|
||||||
Authors string `json:"authors"`
|
Authors string `json:"authors"`
|
||||||
|
// VideoLink is the link to explaination videos when the challenge is over.
|
||||||
|
VideosLink string `json:"videoslink"`
|
||||||
|
|
||||||
// Start is the departure time (expected or effective).
|
// Start is the departure time (expected or effective).
|
||||||
Start time.Time `json:"start"`
|
Start time.Time `json:"start"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user