From b5f3dd055ecc25120df65f6655808d8a8897f1a3 Mon Sep 17 00:00:00 2001 From: "Grail Finder (aider)" Date: Sat, 5 Apr 2025 16:52:02 +0300 Subject: feat: extract feedback into template partial and add Correct field --- components/index.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'components/index.html') diff --git a/components/index.html b/components/index.html index f0f18f0..9c43a50 100644 --- a/components/index.html +++ b/components/index.html @@ -13,13 +13,8 @@
{{.Text}}
-
- {{if .Correct}} -
Correct!
- {{else}} -
Try Again
- {{end}} -
{{.Explanation}}
+
+ {{template "feedback" .}} {{if .ShowNext}}
+ {{template "feedback" .}}