From 81645239d75c78c399850b9ecb63e89eb135d391 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Thu, 27 Jul 2023 22:00:29 +0200 Subject: [PATCH] update hmtl --- scores/static/scores/style.css | 5 +++-- scores/templates/scores/index.html | 25 ++++++++++++---------- scores/templates/scores/match.html | 4 +++- scores/templates/scores/tournament.html | 28 ++++++++++++++----------- 4 files changed, 36 insertions(+), 26 deletions(-) diff --git a/scores/static/scores/style.css b/scores/static/scores/style.css index e280712..c7f10d2 100644 --- a/scores/static/scores/style.css +++ b/scores/static/scores/style.css @@ -102,8 +102,9 @@ td { .match { /* display: inline-block; */ display:inline-block; - width: 30%; + width: 28%; padding: 0px 20px; + vertical-align: top; /* here */ } @@ -130,7 +131,7 @@ td { .steamname { width: 100%; - font-size: 200%; + font-size: 150%; } .smatch { diff --git a/scores/templates/scores/index.html b/scores/templates/scores/index.html index eaa879d..22cc4e2 100644 --- a/scores/templates/scores/index.html +++ b/scores/templates/scores/index.html @@ -24,26 +24,26 @@
-

{{ match.title }}

+

{{ match.title }}

{% if match.isMatch or match.isBracket %} {% if match.isMatch %}
-

TERRAIN #{{ match.court }}

+

TERRAIN #{{ match.court }}

{% else %}
-

POULE #{{ match.poule|floatformat:0 }}

+

POULE #{{ match.poule|floatformat:0 }}

{% endif %} {% else %} {% if match.isStatistic %}
-

STATISTIQUES

+

STATISTIQUES

{% else %}
-

#{{ match.court }}

+

#{{ match.court }}

{% endif %} @@ -104,10 +104,12 @@ {% endif %} + {% if match.isMatch or match.isBracket %}

{{ match.durationPrefix }}
{{ match.duration }}

+ {% endif %}
{% endfor %} @@ -120,26 +122,26 @@
-

{{ match.title }}

+

{{ match.title }}

{% if match.isMatch or match.isBracket %} {% if match.isMatch %}
-

TERRAIN #{{ match.court }}

+

TERRAIN #{{ match.court }}

{% else %}
-

POULE #{{ match.poule|floatformat:0 }}

+

POULE #{{ match.poule|floatformat:0 }}

{% endif %} {% else %} {% if match.isStatistic %}
-

STATISTIQUES

+

STATISTIQUES

{% else %}
-

#{{ match.court }}

+

#{{ match.court }}

{% endif %} @@ -198,11 +200,12 @@ {% endif %} - + {% if match.isMatch or match.isBracket %}

{{ match.durationPrefix }}
{{ match.duration }}

+ {% endif %}
diff --git a/scores/templates/scores/match.html b/scores/templates/scores/match.html index 9ed2a7e..715f5db 100644 --- a/scores/templates/scores/match.html +++ b/scores/templates/scores/match.html @@ -16,6 +16,7 @@
{% autoescape off %} +
{{ match.tournament.name }}
@@ -79,11 +80,12 @@ {% endif %} - + {% if match.isMatch or match.isBracket %}

{{ match.durationPrefix }}
{{ match.duration }}

+ {% endif %}
diff --git a/scores/templates/scores/tournament.html b/scores/templates/scores/tournament.html index 938a185..2fb05c8 100644 --- a/scores/templates/scores/tournament.html +++ b/scores/templates/scores/tournament.html @@ -19,32 +19,32 @@
-
{{ tournament.name }}
+
{{ tournament.name }}
{% for match in live_matches %}
-

{{ match.title }}

+

{{ match.title }}

{% if match.isMatch or match.isBracket %} {% if match.isMatch %} {% else %} {% endif %} {% else %} {% if match.isStatistic %} {% else %} {% endif %} @@ -103,10 +103,13 @@ {% endif %} + {% if match.isMatch or match.isBracket %}

{{ match.durationPrefix }}
{{ match.duration }}

+ {% endif %} +
{% endfor %} @@ -115,26 +118,26 @@
-

{{ match.title }}

+

{{ match.title }}

{% if match.isMatch or match.isBracket %} {% if match.isMatch %} {% else %} {% endif %} {% else %} {% if match.isStatistic %} {% else %} {% endif %} @@ -193,11 +196,12 @@ {% endif %} - + {% if match.isMatch or match.isBracket %}

{{ match.durationPrefix }}
{{ match.duration }}

+ {% endif %}
{% endfor %}