diff options
Diffstat (limited to 'components/index.html')
-rw-r--r-- | components/index.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/index.html b/components/index.html index 3efca24..d3811b1 100644 --- a/components/index.html +++ b/components/index.html @@ -10,12 +10,17 @@ </head> <body> <div id="ancestor"> + {{if .Requirement}} + <p>{{.Requirement}}</p> + {{end}} <div class="question-text" data-testid="question"> {{.Text}} </div> <div id="feedback" data-testid="feedback"> - {{if .Correct}}{{template "feedback" .}}{{else if .Requirement}}{{template "feedback" .}}{{end}} {{if ne .Status 0}} + <div> + {{.Explanation}} + </div> <button hx-get="/next-question?current_id={{.ID}}" hx-target="#ancestor" |