aboutsummaryrefslogtreecommitdiffstats
path: root/edaweb/templates/questions.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
commit0e8ada1eff8799437c9be1bc2af10d6198fa8cad (patch)
tree65d40b0c83fc2477306d561d8b98741e8e6585c6 /edaweb/templates/questions.html.j2
parent9e077a790919e2980111262fbde500a5cee828f8 (diff)
downloadeda.gay-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.tar.gz
eda.gay-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.zip
Added inline HTML into blogposts, refactored a bit
Diffstat (limited to 'edaweb/templates/questions.html.j2')
-rw-r--r--edaweb/templates/questions.html.j217
1 files changed, 17 insertions, 0 deletions
diff --git a/edaweb/templates/questions.html.j2 b/edaweb/templates/questions.html.j2
new file mode 100644
index 0000000..eb58380
--- /dev/null
+++ b/edaweb/templates/questions.html.j2
@@ -0,0 +1,17 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <h4><a href="{{ qnas_link }}">ask a question!</a></h4>
+ <dl>
+ {% for id_, link, dt, question, answer, host in qnas %}
+ {% if host == "curiouscat" %}
+ <dt class="qnaheader"><a href="{{ link }}">{{ dt.isoformat() }}</a> - {{ host }}</dt>
+ {% else %}
+ <dt class="qnaheader">{{ dt.isoformat() }} - {{ host }}</dt>
+ {% endif %}
+ <dd>
+ <dt class="question"><p>{{ question }}</p></dt>
+ <dd class="answer"><p>{{ answer }}</p></dd>
+ </dd>
+ {% endfor %}
+ </dl>
+{% endblock %}