From 1e5faf9b609fa230d763bccdd8520441c5498a15 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 6 Apr 2025 10:04:22 +0300 Subject: Feat: add mixed exercsises --- components/question.html | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 components/question.html (limited to 'components/question.html') diff --git a/components/question.html b/components/question.html new file mode 100644 index 0000000..ef4618b --- /dev/null +++ b/components/question.html @@ -0,0 +1,75 @@ +{{define "question"}} +
+ {{if .Requirement}} +

{{.Requirement}}

+ {{end}} +
+ {{.Text}} +
+
+ {{if eq .Status 1}} + Correct! + {{end}} + {{if eq .Status 2}} + Wrong. + {{end}} +
+
+ {{if ne .Status 0}} +
+ {{.Explanation}} +
+ + {{end}} +
+
+ + + + +
+
+{{end}} -- cgit v1.2.3