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