initial commit
This commit is contained in:
27
flaskapp/templates/home.html
Normal file
27
flaskapp/templates/home.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends "base.html" %}
|
||||
{% block main %}
|
||||
<div class="h2">Meine Turniere</div>
|
||||
<hr style="height: 3px" />
|
||||
{% if not tournaments %}
|
||||
Bitte oben rechts einloggen.
|
||||
{% else %}
|
||||
<table class="table table-hover align-middle">
|
||||
{% for tournament in tournaments %}
|
||||
<tr style="height: 80px; cursor: pointer;" onclick="window.location='{{ url_for('tournament.list_matches', tournament_id=tournament.id, participant_id=tournament.participant_id) }}'">
|
||||
<td class="col-2 text-center">
|
||||
<img src="{{ tournament.logo.logo_small }}">
|
||||
</td>
|
||||
<td class="col-8">
|
||||
<b>{{ tournament.name }}</b><br />
|
||||
{% if tournament.scheduled_date_start and tournament.scheduled_date_end %}
|
||||
<span class="text-secondary">Von {{ tournament.scheduled_date_start }} bis {{ tournament.scheduled_date_end }}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="col-2">
|
||||
{{ tournament.size }} Teams
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user