From c2eb9c48593275a59f3b243eb82b09de360ed066 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Wed, 12 Dec 2018 22:12:55 +0200 Subject: [PATCH] missing template --- templates/observe.html | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 templates/observe.html diff --git a/templates/observe.html b/templates/observe.html new file mode 100644 index 0000000..80444d4 --- /dev/null +++ b/templates/observe.html @@ -0,0 +1,48 @@ +{% extends "layout.html" %} +{% block body %} +

aBot!

+

Current token counts

+ + + + + + + + + + + + + + +
UnusedUsedTotal
{{ tokens.unused }}{{ tokens.used }}{{ tokens.total }}
+ +{% if summary %} +

Current results

+ +
+{% for qa_item in qa %} +
+

{{ qa_item[0]|safe }}

+
    + {% for answer in qa_item[1] %} + {% if answer.answer_type == "single" %} +
  • {{ answer.answer }}: {{ answer.count }} ({{ answer.percent }}%) + {% endif %} + {% if answer.answer_type == "multiple" %} +
  • {{ answer.answer }}: {{ answer.count }} ({{ answer.percent }}%) + {% endif %} + {% if answer.answer_type == "open" %} +
  • "{{ answer.answer }}" + {% endif %} + {% endfor %} +
+
+ +{% endfor %} +
+ +{% endif %} + +{% endblock %}