vcp-elearning/tkupek_elearning/elearning/templates/statistic.html
tkupek 8340621ce9 added correct field to user_answer, revert utf8 fix
utf8 does not seem to make troubles on windows, testing this on linux
2016-02-17 23:58:07 +01:00

65 lines
No EOL
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
{% load staticfiles %}
<link rel="stylesheet" href="{% static 'css/style.css' %}">
<link href="{% static 'images/favicon.ico' %}" rel="shortcut icon">
<title>{{ settings.title }}</title>
</head>
<body>
<div class="container">
<img src="{{ settings.logo }}" class="mainLogo">
<h1>{{ settings.title }}</h1>
<p>Welcome to the statistic backend!</p>
<hr/>
<div class="margin50" ></div>
<h2>Users</h2>
<table>
<tr class="table_headline">
<td>name</td>
<td>questions answered</td>
<td>last seen</td>
</tr>
{% for user in users %}
<tr>
<td>{{ user.name }}</td>
<td>{{ user.questions_answered }}</td>
<td>{{ user.last_seen }}</td>
</tr>
{% endfor %}
</table>
<div class="margin50" ></div>
<h2>Questions</h2>
<table>
<tr class="table_headline">
<td>title</td>
<td>answers</td>
<td>correct</td>
<td>correct percentage</td>
</tr>
{% for question in questions %}
<tr>
<td>{{ question.title }}</td>
<td>{{ question.answers }}</td>
<td>{{ question.correct_answers }}</td>
<td>{{ question.correct_answers_percentage }}</td>
</tr>
{% endfor %}
</table>
<div class="margin50" ></div>
<hr/>
{{ settings.footer }}
</div>
</body>
</html>