Bilder als Antworten hinzugefügt

This commit is contained in:
2023-11-02 17:52:04 +01:00
parent 2b9d9d7656
commit 404e079343
8 changed files with 49 additions and 15 deletions

View File

@ -11,11 +11,18 @@
{{define "answers"}}
{{range .Answers}}
{{if .IsImage}}
<span class="{{if and .Chosen .Correct}} correct {{else if and .Chosen (not .Correct)}} incorrect {{end}}">
{{.ID}}.
</span>
<img src="{{.Text}}" alt="{{.Text}}" />
{{else}}
<p class="{{if and .Chosen .Correct}} correct {{else if and .Chosen (not .Correct)}} incorrect {{end}}">
{{.Text}}
</p>
{{end}}
{{end}}
{{end}}
{{define "content"}}
<p>{{.BriefingParticipant.NoIncorrect}} Fehler</p>