You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
178 lines
7.5 KiB
178 lines
7.5 KiB
<html>
|
|
|
|
{% load static %}
|
|
|
|
<head>
|
|
<link rel="stylesheet" href="{% static 'scores/style.css' %}">
|
|
<title>Padel</title>
|
|
<meta http-equiv="refresh" content="15"/>
|
|
</head>
|
|
|
|
<div class="wrapper">
|
|
|
|
{% if club.header %}
|
|
<header class="center">{{ club.header }}</header>
|
|
{% 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 }}/">TERRAIN #{{ match.court }}</a></p>
|
|
|
|
<h1>{{ match.title }}</h1>
|
|
|
|
<!-- <p class="duration">
|
|
<div class="alignleft"><h1>{{ match.title }}</h1></div>
|
|
<div class="big alignright"><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a></div>
|
|
</p> -->
|
|
|
|
{% if match.team3 %}
|
|
|
|
<table>
|
|
<tr><td class="teamname">{{ 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 class="teamname">{{ 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 class="teamname">{{ 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 class="teamname">{{ 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>
|
|
|
|
{% if match.team5 %}
|
|
|
|
<tr><td class="teamname">{{ 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 class="teamname">{{ 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 %}
|
|
{% if match.team1scorecolumn4 %}<td class="score">{{ match.team1scorecolumn4 }}</td>{% endif %}
|
|
{% if match.team1scorecolumn5 %}<td class="score">{{ match.team1scorecolumn5 }}</td>{% endif %}
|
|
</tr>
|
|
<tr>
|
|
<td class="teamname">{{ 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 %}
|
|
{% 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="duration">
|
|
<div class="alignleft">{{ match.durationPrefix }}</div>
|
|
<div class="big alignright">{{ match.duration }}</div>
|
|
</p>
|
|
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% if ended_matches %}
|
|
{% for match in ended_matches %}
|
|
<div class="match">
|
|
|
|
<h1>{{ match.title }}</h1>
|
|
|
|
{% if match.team3 %}
|
|
|
|
<table>
|
|
<tr><td class="teamname">{{ 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 class="teamname">{{ 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 class="teamname">{{ 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 class="teamname">{{ 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>
|
|
|
|
{% if match.team5 %}
|
|
|
|
<tr><td class="teamname">{{ 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 class="teamname">{{ 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 %}
|
|
{% if match.team1scorecolumn4 %}<td class="score">{{ match.team1scorecolumn4 }}</td>{% endif %}
|
|
{% if match.team1scorecolumn5 %}<td class="score">{{ match.team1scorecolumn5 }}</td>{% endif %}
|
|
</tr>
|
|
<tr>
|
|
<td class="teamname">{{ 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 %}
|
|
{% 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="duration">
|
|
<div class="alignleft">{{ match.durationPrefix }}</div>
|
|
<div class="big alignright">{{ match.duration }}</div>
|
|
</p>
|
|
<div class="clear" />
|
|
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
{% endautoescape %}
|
|
</main>
|
|
|
|
{% if club.footer %}
|
|
<footer class="page-footer, center">{{ club.footer }}</footer>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</html>
|
|
|