tibia-website/accounts/templates/index.html

25 lines
609 B
HTML
Raw Normal View History

{% extends "base_generic.html" %}
{% block content %}
<h1>Highscore</h1>
2019-01-20 16:48:54 +01:00
{% 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>
2019-01-20 16:48:54 +01:00
{% endfor %}
</table>
2019-01-20 16:48:54 +01:00
{% else %}
<p>No players registered.</p>
{% endif %}
<a href="{% url 'accounts:register' %}">Register now!</a>
{% endblock %}