You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 line
713 B

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Highscore</title>
</head>
<body>
<h1>Highscore</h1>
{% if best_players %}
<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>
{% endfor %}
</table>
{% else %}
<p>No players registered.</p>
{% endif %}
<a href="{% url 'accounts:register' %}">Register now!</a>
<a href="{% url 'accounts:login' %}">Login</a>
</body>
</html>