2019-01-23 16:25:43 +01:00
|
|
|
{% extends "base_generic.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
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-23 16:25:43 +01:00
|
|
|
{% endblock %}
|