From 96441a431eaca60b1b798e997608812c8be76598 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 5 Apr 2025 17:56:01 +0300 Subject: feat: update question template and simplify handler logic --- components/index.html | 7 ++++++- internal/handlers/main.go | 12 ++++-------- 2 files changed, 10 insertions(+), 9 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 @@
+ {{if .Requirement}} +

{{.Requirement}}

+ {{end}}
{{.Text}}
- {{if .Correct}}{{template "feedback" .}}{{else if .Requirement}}{{template "feedback" .}}{{end}} {{if ne .Status 0}} +
+ {{.Explanation}} +