Outsource the table shaping for use with flask

This commit is contained in:
2023-11-22 18:52:25 +01:00
parent c690ce755a
commit f944aabc38
10 changed files with 113 additions and 16 deletions

View File

@@ -13,7 +13,11 @@
{% for group in data.groups %}
{% block groupBlk scoped %}
<div class="section">
{% if group is none %}
<h1>Auswertung ohne eindeutige Gruppe</h1>
{% else %}
<h1>Auswertung Gruppe {{ group.name }}</h1>
{% endif %}
<table class="tab-summary">
<tr>
<th>Teilnehmer</th>
@@ -39,9 +43,10 @@
{% if not participant.finalist %}
Kein/e Finalist/in
{% endif %}
{{ res.getNativePlace() }} ({{ res.nativeClass }}) <br />
{{ res.getNativePlace() }}
({{ res.nativeClass }}) <br />
<span class="competition-place">
{{ res.getPlace() }} in {{ res.competitionClass }}
{{ res.place }} in {{ res.competitionClass }}
</span>
{% endif %}
</td>