From 4303ff93359c42e61cb7362932a4433d4d51cf1b Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 24 Mar 2026 18:33:56 +0000 Subject: Added page for each question --- edaweb/templates/question.html.j2 | 22 ++++++++++++++++++++++ edaweb/templates/questions.html.j2 | 6 +----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 edaweb/templates/question.html.j2 (limited to 'edaweb/templates') diff --git a/edaweb/templates/question.html.j2 b/edaweb/templates/question.html.j2 new file mode 100644 index 0000000..a9c7a0c --- /dev/null +++ b/edaweb/templates/question.html.j2 @@ -0,0 +1,22 @@ +{% extends "template.html.j2" %} +{% block content %} + + +

ask a question!

+
+
ID:
{{ qna["qna"][0] }}
+
Question source:
{{ qna["qna"][-1] }}
+
Answered at:
{{ qna["qna"][2] }}
+
Question:
{{ qna["qna"][3] }}
+
Answer:
{{ qna["qna"][4] }}
+
+{% endblock %} \ No newline at end of file diff --git a/edaweb/templates/questions.html.j2 b/edaweb/templates/questions.html.j2 index eb58380..a800941 100644 --- a/edaweb/templates/questions.html.j2 +++ b/edaweb/templates/questions.html.j2 @@ -3,11 +3,7 @@

ask a question!

{% for id_, link, dt, question, answer, host in qnas %} - {% if host == "curiouscat" %} -
{{ dt.isoformat() }} - {{ host }}
- {% else %} -
{{ dt.isoformat() }} - {{ host }}
- {% endif %} +
{{ dt.isoformat() }} - {{ host }}

{{ question }}

{{ answer }}

-- cgit v1.2.3