missing template
This commit is contained in:
48
templates/observe.html
Normal file
48
templates/observe.html
Normal file
@@ -0,0 +1,48 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user