Matchplan/flaskapp/templates/home.html

27 lines
1.2 KiB
HTML
Raw Normal View History

2021-05-08 05:29:32 +02:00
{% 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 %}