Add templates and many other things

This commit is contained in:
Michał Gdula 2023-05-06 23:11:20 +01:00
parent 330201be3a
commit 62945c943d
414 changed files with 14758 additions and 4145 deletions

View file

@ -0,0 +1,30 @@
{% extends "base.html" %}
{% block content %}
{% if scores %}
<table>
<tr>
<th>Position</th>
<th>Player</th>
<th>Difficulty</th>
<th>Score</th>
</tr>
{% for score in top_scores %}
<tr>
<td>{{ loop.index }}</td>
{% if score.anonymous %}
<td>{{ score.username }}</td>
{% else %}
<td>{{ score.scorer.username }}</td>
{% endif %}
<td>{{ score.difficulty }}</td>
<td>{{ score.score }}</td>
</tr>
{% endfor %}
</table>
{% else %}
<div class="center-text">
<h2>No scores yet</h2>
<p>Set some!</p>
</div>
{% endif %}
{% endblock %}