From 7464e46b485c3874ca2412c91342f1480eeb2897 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Mon, 7 Aug 2023 10:02:26 +0200 Subject: [PATCH] little fixes --- scores/models.py | 2 +- scores/static/scores/style.css | 7 +++ scores/templates/scores/index.html | 71 +++++++++++++++---------- scores/templates/scores/match.html | 39 +++++++++----- scores/templates/scores/tournament.html | 22 +++++--- scores/urls.py | 2 +- scores/views.py | 12 +++++ 7 files changed, 104 insertions(+), 51 deletions(-) diff --git a/scores/models.py b/scores/models.py index 929aafc..e4295b5 100644 --- a/scores/models.py +++ b/scores/models.py @@ -64,7 +64,7 @@ class Match(models.Model): return self.court / 100 def isMatch(self): - if self.court < 100 and self.court > 0: + if self.court < 100 and self.court >= 0: return True else : return False diff --git a/scores/static/scores/style.css b/scores/static/scores/style.css index 95728bc..4361875 100644 --- a/scores/static/scores/style.css +++ b/scores/static/scores/style.css @@ -83,6 +83,13 @@ td { vertical-align: middle; } +.bigscore { + width: 100px; + font-size: 200%; + text-align: center; + vertical-align: middle; +} + .center { text-align: center; margin: 0 auto; diff --git a/scores/templates/scores/index.html b/scores/templates/scores/index.html index 36b34f8..04b40a9 100644 --- a/scores/templates/scores/index.html +++ b/scores/templates/scores/index.html @@ -15,35 +15,43 @@ Padel + {% if not tv %} + {% endif %}
- {% if live_matches.count|add:ended_matches.count > 6 and auto_scrolling and tv %} + {% if tv %}