diff options
Diffstat (limited to 'edaweb/templates/questions.html.j2')
-rw-r--r-- | edaweb/templates/questions.html.j2 | 17 |
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 %} |