fix my tournaments

sync_v2
Raz 7 months ago
parent d187655e03
commit b746a0da0c
  1. 28
      tournaments/templates/registration/my_tournaments.html

@ -11,50 +11,35 @@
{% load tz %} {% load tz %}
<div class="grid-x"> <div class="grid-x">
{% if running_tournaments %}
<div class="cell medium-12 large-6 topblock padding10"> <div class="cell medium-12 large-6 topblock padding10">
<div>
<div class="table-row-5-colums-tournament header"> <div class="table-row-5-colums-tournament header">
<label class="title">Vos tournois en cours</label> <label class="title">Vos tournois en cours</label>
</div> </div>
{% if running_tournaments %}
{% for tournament in running_tournaments %} {% for tournament in running_tournaments %}
{% include 'tournaments/tournament_row.html' %} {% include 'tournaments/tournament_row.html' %}
{% endfor %} {% endfor %}
{% else %}
<div>
Aucun tournoi en cours
</div> </div>
{% endif %} {% endif %}
{% if upcoming_tournaments %}
</div> <div class="cell medium-12 large-6 topblock padding10">
<div>
<div class="table-row-5-colums-tournament header"> <div class="table-row-5-colums-tournament header">
<label class="title">Vos tournois à venir</label> <label class="title">Vos tournois à venir</label>
</div> </div>
{% if upcoming_tournaments %}
{% for tournament in upcoming_tournaments %} {% for tournament in upcoming_tournaments %}
{% include 'tournaments/tournament_row.html' %} {% include 'tournaments/tournament_row.html' %}
{% endfor %} {% endfor %}
{% else %}
<div>
Aucun tournoi à venir
</div> </div>
{% endif %} {% endif %}
</div>
</div>
{% if ended_tournaments %}
<div class="cell medium-12 large-6 topblock padding10"> <div class="cell medium-12 large-6 topblock padding10">
<div>
<div class="table-row-5-colums-tournament header"> <div class="table-row-5-colums-tournament header">
<label class="title">Vos tournois terminés</label> <label class="title">Vos tournois terminés</label>
</div> </div>
{% if ended_tournaments %}
{% for tournament in ended_tournaments %} {% for tournament in ended_tournaments %}
{% include 'tournaments/tournament_row.html' %} {% include 'tournaments/tournament_row.html' %}
{% endfor %} {% endfor %}
@ -65,12 +50,7 @@
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% else %}
<div>
Aucun tournoi terminé
</div> </div>
{% endif %} {% endif %}
</div> </div>
</div>
</div>
{% endblock %} {% endblock %}

Loading…
Cancel
Save