|
|
|
|
@ -46,41 +46,51 @@ document.getElementById("demo").innerHTML = "Démarrage en cours..."; |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<main class="page-body"> |
|
|
|
|
{% autoescape off %} |
|
|
|
|
|
|
|
|
|
<div class="container"> |
|
|
|
|
{% if live_matches %} |
|
|
|
|
{% for match in live_matches %} |
|
|
|
|
<div class="match"> |
|
|
|
|
|
|
|
|
|
<p><a href="/match/{{ match.id }}/">COURS #{{ match.court }}</a></p> |
|
|
|
|
<p><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a></p> |
|
|
|
|
|
|
|
|
|
<h1>{{ match.title }}</h1> |
|
|
|
|
|
|
|
|
|
{% if match.team3 %} |
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
|
<tr><td>{{ match.team1 }}</td> |
|
|
|
|
<tr><td>{{ match.team1|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn1 %}<td class="score">{{ match.team1scorecolumn1 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn1 %}<td class="score">{{ match.team2scorecolumn1 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr><td>{{ match.team2 }}</td> |
|
|
|
|
<tr><td>{{ match.team2|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn2 %}<td class="score">{{ match.team1scorecolumn2 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn2 %}<td class="score">{{ match.team2scorecolumn2 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr><td>{{ match.team3 }}</td> |
|
|
|
|
<tr><td>{{ match.team3|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn3 %}<td class="score">{{ match.team1scorecolumn3 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn3 %}<td class="score">{{ match.team2scorecolumn3 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr><td>{{ match.team4 }}</td> |
|
|
|
|
<tr><td>{{ match.team4|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn4 %}<td class="score">{{ match.team1scorecolumn4 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn4 %}<td class="score">{{ match.team2scorecolumn4 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<tr><td>{{ match.team5 }}</td> |
|
|
|
|
{% if match.team5 %} |
|
|
|
|
|
|
|
|
|
<tr><td>{{ match.team5|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn5 %}<td class="score">{{ match.team1scorecolumn5 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn5 %}<td class="score">{{ match.team2scorecolumn5 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
</table> |
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<td>{{ match.team1 }}</td> |
|
|
|
|
<td>{{ match.team1|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn1 %}<td class="score">{{ match.team1scorecolumn1 }}</td>{% endif %} |
|
|
|
|
{% if match.team1scorecolumn2 %}<td class="score">{{ match.team1scorecolumn2 }}</td>{% endif %} |
|
|
|
|
{% if match.team1scorecolumn3 %}<td class="score">{{ match.team1scorecolumn3 }}</td>{% endif %} |
|
|
|
|
@ -88,7 +98,7 @@ document.getElementById("demo").innerHTML = "Démarrage en cours..."; |
|
|
|
|
{% if match.team1scorecolumn5 %}<td class="score">{{ match.team1scorecolumn5 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td>{{ match.team2 }}</td> |
|
|
|
|
<td>{{ match.team2|linebreaksbr }}</td> |
|
|
|
|
{% if match.team2scorecolumn1 %}<td class="score">{{ match.team2scorecolumn1 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn2 %}<td class="score">{{ match.team2scorecolumn2 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn3 %}<td class="score">{{ match.team2scorecolumn3 }}</td>{% endif %} |
|
|
|
|
@ -100,8 +110,10 @@ document.getElementById("demo").innerHTML = "Démarrage en cours..."; |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<!-- <p id="demo"></p> --> |
|
|
|
|
|
|
|
|
|
<p class="big">{{ match.duration }}</p> |
|
|
|
|
<p> |
|
|
|
|
<div class="small">{{ match.durationPrefix }}</div> |
|
|
|
|
<div class="big">{{ match.duration }}</div> |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
@ -117,28 +129,37 @@ document.getElementById("demo").innerHTML = "Démarrage en cours..."; |
|
|
|
|
{% if match.team3 %} |
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
|
<tr><td>{{ match.team1 }}</td> |
|
|
|
|
<tr><td>{{ match.team1|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn1 %}<td class="score">{{ match.team1scorecolumn1 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn1 %}<td class="score">{{ match.team2scorecolumn1 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr><td>{{ match.team2 }}</td> |
|
|
|
|
<tr><td>{{ match.team2|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn2 %}<td class="score">{{ match.team1scorecolumn2 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn2 %}<td class="score">{{ match.team2scorecolumn2 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr><td>{{ match.team3 }}</td> |
|
|
|
|
<tr><td>{{ match.team3|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn3 %}<td class="score">{{ match.team1scorecolumn3 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn3 %}<td class="score">{{ match.team2scorecolumn3 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr><td>{{ match.team4 }}</td> |
|
|
|
|
<tr><td>{{ match.team4|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn4 %}<td class="score">{{ match.team1scorecolumn4 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn4 %}<td class="score">{{ match.team2scorecolumn4 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<tr><td>{{ match.team5 }}</td> |
|
|
|
|
{% if match.team5 %} |
|
|
|
|
|
|
|
|
|
<tr><td>{{ match.team5|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn5 %}<td class="score">{{ match.team1scorecolumn5 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn5 %}<td class="score">{{ match.team2scorecolumn5 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
</table> |
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<td>{{ match.team1 }}</td> |
|
|
|
|
<td>{{ match.team1|linebreaksbr }}</td> |
|
|
|
|
{% if match.team1scorecolumn1 %}<td class="score">{{ match.team1scorecolumn1 }}</td>{% endif %} |
|
|
|
|
{% if match.team1scorecolumn2 %}<td class="score">{{ match.team1scorecolumn2 }}</td>{% endif %} |
|
|
|
|
{% if match.team1scorecolumn3 %}<td class="score">{{ match.team1scorecolumn3 }}</td>{% endif %} |
|
|
|
|
@ -146,7 +167,7 @@ document.getElementById("demo").innerHTML = "Démarrage en cours..."; |
|
|
|
|
{% if match.team1scorecolumn5 %}<td class="score">{{ match.team1scorecolumn5 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td>{{ match.team2 }}</td> |
|
|
|
|
<td>{{ match.team2|linebreaksbr }}</td> |
|
|
|
|
{% if match.team2scorecolumn1 %}<td class="score">{{ match.team2scorecolumn1 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn2 %}<td class="score">{{ match.team2scorecolumn2 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn3 %}<td class="score">{{ match.team2scorecolumn3 }}</td>{% endif %} |
|
|
|
|
@ -159,8 +180,10 @@ document.getElementById("demo").innerHTML = "Démarrage en cours..."; |
|
|
|
|
|
|
|
|
|
<!-- <p id="demo"></p> --> |
|
|
|
|
|
|
|
|
|
<p class="big">{{ match.duration }}</p> |
|
|
|
|
|
|
|
|
|
<p> |
|
|
|
|
<div class="small">{{ match.durationPrefix }}</div> |
|
|
|
|
<div class="big">{{ match.duration }}</div> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
@ -168,7 +191,7 @@ document.getElementById("demo").innerHTML = "Démarrage en cours..."; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{% endautoescape %} |
|
|
|
|
</main> |
|
|
|
|
|
|
|
|
|
{% if club.footer %} |
|
|
|
|
|