From 78906f9c07330a6f8ed32374927965eb178dfb02 Mon Sep 17 00:00:00 2001 From: CHIBOUB Chakib Date: Tue, 10 Sep 2024 15:10:39 +0200 Subject: [PATCH] changed the bracket's template --- .../templates/pong/tournament_brackets.html | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/pong/game/templates/pong/tournament_brackets.html b/pong/game/templates/pong/tournament_brackets.html index 9207797..f7f0999 100644 --- a/pong/game/templates/pong/tournament_brackets.html +++ b/pong/game/templates/pong/tournament_brackets.html @@ -37,53 +37,18 @@ background-color: #00ff3c; font-weight: bold; } - .connector { - display: flex; - flex-direction: column; - justify-content: center; - } - .connector::before, .connector::after { - content: ''; - border-top: 1px solid #ffffff; - width: 20px; - height: 50%; - } - .connector::before { - border-right: 1px solid #ffffff; - } - .connector::after { - border-right: 1px solid #ffffff; - align-self: flex-end; - } - .round:last-child .connector { - display: none; - }
- {% for round in tournament_rounds %}
- {% for match in round %}
- {{ match.player1 }} - {% if match.score1 is not None %}{{ match.score1 }}{% endif %}
- {{ match.player2|default:"BYE" }} - {% if match.score2 is not None %}{{ match.score2 }}{% endif %}
- {% if not forloop.last %} -
- {% endif %} - {% endfor %}
- {% if not forloop.last %} -
- {% endif %} - {% endfor %}
\ No newline at end of file