|
|
|
|
@ -48,8 +48,8 @@ document.getElementById("demo").innerHTML = "Démarrage en cours..."; |
|
|
|
|
<main class="page-body"> |
|
|
|
|
|
|
|
|
|
<div class="container"> |
|
|
|
|
{% if matches %} |
|
|
|
|
{% for match in matches %} |
|
|
|
|
{% if live_matches %} |
|
|
|
|
{% for match in live_matches %} |
|
|
|
|
<div class="match"> |
|
|
|
|
|
|
|
|
|
<p><a href="/match/{{ match.id }}/">COURS #{{ match.court }}</a></p> |
|
|
|
|
@ -109,6 +109,68 @@ document.getElementById("demo").innerHTML = "Démarrage en cours..."; |
|
|
|
|
{% else %} |
|
|
|
|
<p class="center">Pas de matchs en cours...</p> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if ended_matches %} |
|
|
|
|
{% for match in ended_matches %} |
|
|
|
|
<div class="match"> |
|
|
|
|
|
|
|
|
|
<h1>{{ match.title }}</h1> |
|
|
|
|
|
|
|
|
|
{% if match.team3 %} |
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
|
<tr><td>{{ match.team1 }}</td> |
|
|
|
|
{% if match.team1scorecolumn1 %}<td class="score">{{ match.team1scorecolumn1 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr><td>{{ match.team2 }}</td> |
|
|
|
|
{% if match.team1scorecolumn2 %}<td class="score">{{ match.team1scorecolumn2 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr><td>{{ match.team3 }}</td> |
|
|
|
|
{% if match.team1scorecolumn3 %}<td class="score">{{ match.team1scorecolumn3 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr><td>{{ match.team4 }}</td> |
|
|
|
|
{% if match.team1scorecolumn4 %}<td class="score">{{ match.team1scorecolumn4 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<tr><td>{{ match.team5 }}</td> |
|
|
|
|
{% if match.team1scorecolumn5 %}<td class="score">{{ match.team1scorecolumn5 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<td>{{ match.team1 }}</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 %} |
|
|
|
|
{% if match.team1scorecolumn4 %}<td class="score">{{ match.team1scorecolumn4 }}</td>{% endif %} |
|
|
|
|
{% if match.team1scorecolumn5 %}<td class="score">{{ match.team1scorecolumn5 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td>{{ match.team2 }}</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 %} |
|
|
|
|
{% if match.team2scorecolumn4 %}<td class="score">{{ match.team2scorecolumn4 }}</td>{% endif %} |
|
|
|
|
{% if match.team2scorecolumn5 %}<td class="score">{{ match.team2scorecolumn5 }}</td>{% endif %} |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<!-- <p id="demo"></p> --> |
|
|
|
|
|
|
|
|
|
<p class="big">{{ match.duration }}</p> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
<p class="center">Pas de matchs en cours...</p> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</main> |
|
|
|
|
|