Add base template and unuasble style

This commit is contained in:
Michał Gdula 2023-05-05 02:11:10 +03:00
parent 8bf194f936
commit 0af071992b
10 changed files with 94 additions and 53 deletions

View file

@ -0,0 +1,29 @@
{% extends "base.html" %}
{% block content %}
{% if show_sub %}
<nav>
<ul>
<li><a href="Level1">Level 1</a></li>
<li><a href="Level2">Level 2</a></li>
<li><a href="Level3">Level 3</a></li>
</ul>
</nav>
{% endif %}
<table>
<tr>
<th>Score</th>
<th>Difficulty</th>
<th>Achievements</th>
<th>Player</th>
</tr>
{% for score in top_scores %}
<tr>
<td>{{ score.score }}</td>
<td>{{ score.difficulty }}</td>
<td>{{ score.achievements }}</td>
<td>{{ score.user.steam_name }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}