2019-01-20 16:48:54 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Highscore</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2019-01-20 22:24:01 +01:00
|
|
|
<h1>Highscore</h1>
|
2019-01-20 16:48:54 +01:00
|
|
|
|
|
|
|
{% if best_players %}
|
2019-01-20 22:24:01 +01:00
|
|
|
<table style="width:50%">
|
|
|
|
<tr>
|
|
|
|
<th style="text-align: center;">Name</th>
|
|
|
|
<th style="text-align: center;">Level</th>
|
|
|
|
</tr>
|
|
|
|
{% for player in best_players %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ player.name }}</td>
|
|
|
|
<td style="text-align: right; width: 10%">{{ player.level }}</td>
|
|
|
|
</tr>
|
2019-01-20 16:48:54 +01:00
|
|
|
{% endfor %}
|
2019-01-20 22:24:01 +01:00
|
|
|
</table>
|
2019-01-20 16:48:54 +01:00
|
|
|
{% else %}
|
|
|
|
<p>No players registered.</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<a href="{% url 'accounts:register' %}">Register now!</a>
|
2019-01-20 22:24:01 +01:00
|
|
|
<a href="{% url 'accounts:login' %}">Login</a>
|
2019-01-20 16:48:54 +01:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|