Initial commit
This commit is contained in:
38
templates/charts.html
Normal file
38
templates/charts.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{% extends "base.html" %}
|
||||
{% block head %}
|
||||
<title> TipPy Charts</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav %}
|
||||
{% include "nav.html" with ls=ls season=season %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% for mandant, users in mandant_dict.items %}
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h2>Bestenliste
|
||||
{% if pos == 'rueck' %}
|
||||
(Rückrunde)</h2>
|
||||
<p><a href="/charts/{{ ls }}/{{ season }}/hin">Hinrunde anzeigen</a></p>
|
||||
{% elif pos == 'hin' %}
|
||||
(Hinrunde)</h3>
|
||||
<p><a href="/charts/{{ ls }}/{{ season }}/rueck">Rückrunde anzeigen</a></p>
|
||||
{% endif %}
|
||||
<h4>Tippgemeinschaft: {{ mandant }}</h4>
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<th>Spieler</th>
|
||||
<th>Punkte</th>
|
||||
</tr>
|
||||
{% for user, score in users %}
|
||||
<tr>
|
||||
<td>{{ user }}</td>
|
||||
<td>{{ score }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user