settings: Add challenge subtitle

This commit is contained in:
nemunaire 2022-05-02 11:21:34 +02:00
parent 48ee5321a8
commit c525acff20
2 changed files with 9 additions and 0 deletions

View File

@ -120,6 +120,13 @@
</div>
</div>
<div class="form-group row">
<label for="challengeSubtitle" class="col-sm-3 col-form-label col-form-label-sm">Sous-titre du challenge</label>
<div class="col-sm-9">
<input type="text" class="form-control form-control-sm" id="challengeSubtitle" ng-model="challenge.subtitle">
</div>
</div>
<div class="form-group row">
<label for="challengeAuthors" class="col-sm-3 col-form-label col-form-label-sm">Auteur du challenge</label>
<div class="col-sm-9">

View File

@ -12,6 +12,8 @@ const ChallengeFile = "challenge.json"
type ChallengeInfo struct {
// Title is the displayed name of the challenge.
Title string `json:"title"`
// SubTitle is appended to the title.
SubTitle string `json:"subtitle"`
// Authors is the group name of people making the challenge.
Authors string `json:"authors"`
// VideoLink is the link to explaination videos when the challenge is over.