summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGrail Finder (aider) <wohilas@gmail.com>2025-04-05 17:05:23 +0300
committerGrail Finder (aider) <wohilas@gmail.com>2025-04-05 17:05:23 +0300
commit9c9496582a1022200e4a172a24c3818f392a3c92 (patch)
tree8a2e45e0e9b87db450b436d0ca0277f10129143d /components
parent4339bc316de419c98dc106156d2fad8784fb7c04 (diff)
feat: Add "Try Again" message before answer submission
Diffstat (limited to 'components')
-rw-r--r--components/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/index.html b/components/index.html
index 9c43a50..4b46fbf 100644
--- a/components/index.html
+++ b/components/index.html
@@ -14,7 +14,7 @@
{{.Text}}
</div>
<div id="feedback" data-testid="feedback">
- {{template "feedback" .}}
+ {{if not .Correct}}Try Again{{else}}{{template "feedback" .}}{{end}}
{{if .ShowNext}}
<button
hx-get="/next-question?current_id={{.ID}}"