aboutsummaryrefslogtreecommitdiffstats
path: root/edaweb/templates/question.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2026-03-24 18:33:56 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2026-03-24 18:33:56 +0000
commit4303ff93359c42e61cb7362932a4433d4d51cf1b (patch)
treec82b6dd3240f28158da924e0c7c8ea5d5bcb0262 /edaweb/templates/question.html.j2
parentd0d10ab1c7179ab15a440f711909765140436851 (diff)
downloadboymoder.blog-4303ff93359c42e61cb7362932a4433d4d51cf1b.tar.gz
boymoder.blog-4303ff93359c42e61cb7362932a4433d4d51cf1b.zip
Added page for each question
Diffstat (limited to 'edaweb/templates/question.html.j2')
-rw-r--r--edaweb/templates/question.html.j222
1 files changed, 22 insertions, 0 deletions
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 %}
+ <aside>
+ {% if qna["previous"] != None %}
+ <a href="/question?id={{ qna['previous'] }}">← Previous</a>
+ {% endif %}
+ {% if qna["next"] != None %}
+ <a href="/question?id={{ qna['next'] }}">→ Next</a>
+ {% endif %}
+ <br>
+ <a href="/questions#{{ qna['qna'][0] }}">All questions</a>
+ </aside>
+
+ <h4><a href="{{ qnas_link }}">ask a question!</a></h4>
+ <dl>
+ <dt class="qnaheader">ID:</dt><dd>{{ qna["qna"][0] }}</dd>
+ <dt class="qnaheader">Question source:</dt><dd>{{ qna["qna"][-1] }}</dd>
+ <dt class="qnaheader">Answered at:</dt><dd>{{ qna["qna"][2] }}</dd>
+ <dt class="qnaheader">Question:</dt><dd>{{ qna["qna"][3] }}</dd>
+ <dt class="qnaheader">Answer:</dt><dd>{{ qna["qna"][4] }}</dd>
+ </dl>
+{% endblock %} \ No newline at end of file