diff options
author | Grail Finder (aider) <wohilas@gmail.com> | 2025-04-05 16:52:02 +0300 |
---|---|---|
committer | Grail Finder (aider) <wohilas@gmail.com> | 2025-04-05 16:52:02 +0300 |
commit | b5f3dd055ecc25120df65f6655808d8a8897f1a3 (patch) | |
tree | 797efcf2bd68d93272f287ee77ad04bba11b1a64 /internal | |
parent | 3374cb0fb2ce024eb5da78dc63c7313db8ec4c95 (diff) |
feat: extract feedback into template partial and add Correct field
Diffstat (limited to 'internal')
-rw-r--r-- | internal/handlers/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/handlers/main.go b/internal/handlers/main.go index abd2226..4a64380 100644 --- a/internal/handlers/main.go +++ b/internal/handlers/main.go @@ -134,6 +134,7 @@ func (h *Handlers) renderQuestion(w http.ResponseWriter, question *models.Questi type TemplateData struct { *models.Question ShowNext bool + Correct bool } err = tmpl.ExecuteTemplate(w, "main", &TemplateData{ |