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 --- internal/handlers/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/handlers/main.go') 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{ -- cgit v1.2.3