Files
abot/templates/observe.html
Ville Rantanen c2eb9c4859 missing template
2018-12-12 22:12:55 +02:00

49 lines
1.0 KiB
HTML

{% extends "layout.html" %}
{% block body %}
<h1>aBot!</h1>
<h3>Current token counts</h3>
<table id = "counts">
<thead>
<tr>
<td>Unused</td>
<td>Used</td>
<td>Total</td>
</tr>
</thead>
<tbody>
<td>{{ tokens.unused }}</td>
<td>{{ tokens.used }}</td>
<td>{{ tokens.total }}</td>
</tbody>
</table>
{% if summary %}
<h3>Current results</h3>
<div id="questions">
{% for qa_item in qa %}
<div class = "question autoformat">
<h2>{{ qa_item[0]|safe }}</h2>
<ul>
{% for answer in qa_item[1] %}
{% if answer.answer_type == "single" %}
<li class = "summary_single">{{ answer.answer }}: {{ answer.count }} ({{ answer.percent }}%)
{% endif %}
{% if answer.answer_type == "multiple" %}
<li class = "summary_multiple">{{ answer.answer }}: {{ answer.count }} ({{ answer.percent }}%)
{% endif %}
{% if answer.answer_type == "open" %}
<li class = "summary_open">"{{ answer.answer }}"
{% endif %}
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
{% endif %}
{% endblock %}