GameExpo23/TFR/server/templates/scores.html
Michał Gdula a4ebfa8552 Fuck so much to comment on
Renamed the folders and containers to something more reasonable
Using .env file for secretes so I can better hide them from git
Mostly it, I think
2023-06-09 22:27:30 +03:00

38 lines
No EOL
1.2 KiB
HTML

{% extends "base.html" %}
{% block nav %}
<nav>
<a href="{{ url_for('views.index', diff=0) }}" class="button">Level 1</a>
<a href="{{ url_for('views.index', diff=1) }}" class="button">Level 2</a>
<a href="{{ url_for('views.index', diff=2) }}" class="button">Level 3</a>
<a href="{{ url_for('views.index', diff=3) }}" class="button">Normal</a>
<a href="{{ url_for('views.index', diff=4) }}" class="button">Hard</a>
<!-- This is a spacer -->
<span></span>
</nav>
{% endblock %}
{% block content %}
{% if scores %}
<table>
<tr>
<th>Position</th>
<th>Player</th>
<th>Difficulty</th>
<th>Score</th>
</tr>
{% for score in scores %}
<tr>
<td>{{ loop.index }}</td>
<td>{{ score.scorer.username }}</td>
<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 %}