49 lines
1.0 KiB
HTML
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 %}
|