Initial commit

This commit is contained in:
2016-01-20 16:56:31 +01:00
commit 60d55652c0
26 changed files with 1668 additions and 0 deletions

38
templates/charts.html Normal file
View 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 %}