From b746a0da0c53dfd1369fec2a65948fc5b80c3d90 Mon Sep 17 00:00:00 2001 From: Raz Date: Fri, 25 Apr 2025 15:29:25 +0200 Subject: [PATCH] fix my tournaments --- .../registration/my_tournaments.html | 68 +++++++------------ 1 file changed, 24 insertions(+), 44 deletions(-) diff --git a/tournaments/templates/registration/my_tournaments.html b/tournaments/templates/registration/my_tournaments.html index b24a25f..557481a 100644 --- a/tournaments/templates/registration/my_tournaments.html +++ b/tournaments/templates/registration/my_tournaments.html @@ -11,66 +11,46 @@ {% load tz %}
-
-
+ {% if running_tournaments %} +
- {% if running_tournaments %} - {% for tournament in running_tournaments %} - {% include 'tournaments/tournament_row.html' %} - {% endfor %} - {% else %} -
- Aucun tournoi en cours -
- {% endif %} - + {% for tournament in running_tournaments %} + {% include 'tournaments/tournament_row.html' %} + {% endfor %}
- -
+ {% endif %} + {% if upcoming_tournaments %} +
- {% if upcoming_tournaments %} - {% for tournament in upcoming_tournaments %} - {% include 'tournaments/tournament_row.html' %} - {% endfor %} - {% else %} -
- Aucun tournoi à venir -
- {% endif %} + {% for tournament in upcoming_tournaments %} + {% include 'tournaments/tournament_row.html' %} + {% endfor %}
+ {% endif %} -
- -
-
- + {% if ended_tournaments %} +
- {% if ended_tournaments %} - {% for tournament in ended_tournaments %} - {% include 'tournaments/tournament_row.html' %} - {% endfor %} - -
+ {% endif %}
{% endblock %}