.
This commit is contained in:
@@ -16,12 +16,12 @@
|
|||||||
<div id="stats-block">
|
<div id="stats-block">
|
||||||
<h3>Stats</h3>
|
<h3>Stats</h3>
|
||||||
Candidates: {{cids|length}}<br />
|
Candidates: {{cids|length}}<br />
|
||||||
Max score: {{max_score}}<br/>
|
Max score: {{max_score}}<br />
|
||||||
Mean: {{mean}}, Median {{median}}, Mode {{mode}}
|
Mean: {{mean}}, Median {{median}}, Mode {{mode}}
|
||||||
|
|
||||||
<div id="stats-plot">{{plot|safe}}</div>
|
<div id="stats-plot">{{plot|safe}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="col-sm-4">
|
||||||
<table class="table table-dark table-striped table-hover table-sm">
|
<table class="table table-dark table-striped table-hover table-sm">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Candidate ID</th>
|
<th>Candidate ID</th>
|
||||||
@@ -35,32 +35,32 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="col-md-12">
|
||||||
<h3>Results as a table</h3>
|
<h3>Results as a table</h3>
|
||||||
<table class="col-sm table table-dark table-striped table-hover table-sm">
|
<table class="col-sm table table-dark table-striped table-hover table-sm">
|
||||||
<thead class="thead-dark">
|
<thead class="thead-dark">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Candidate</th>
|
<th>Candidate</th>
|
||||||
{% for cid in cids %}
|
{% for cid in cids %}
|
||||||
<th>{{cid}}</th>
|
<th>{{cid}}</th>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for question in questions %}
|
{% for question in questions %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>Question {{forloop.counter}}</td>
|
<td>Question {{forloop.counter}}</td>
|
||||||
{% for ans, score in by_question|get_item:question %}
|
{% for ans, score in by_question|get_item:question %}
|
||||||
<td class="user-answer-score-{{score}}" title="answer score: {{score}}">{{score}}</td>
|
<td class="user-answer-score-{{score}}" title="answer score: {{score}}">{{score}}</td>
|
||||||
|
{% endfor %}
|
||||||
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
<tr>
|
||||||
{% endfor %}
|
<td>Score:</td>
|
||||||
<tr>
|
{% for score in user_scores_list %}
|
||||||
<td>Score:</td>
|
<td>{{score}}</td>
|
||||||
{% for score in user_scores_list %}
|
{% endfor %}
|
||||||
<td>{{score}}</td>
|
<tr>
|
||||||
{% endfor %}
|
|
||||||
<tr>
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user