fix my tournaments

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

@ -11,66 +11,46 @@
{% load tz %}
<div class="grid-x">
<div class="cell medium-12 large-6 topblock padding10">
<div>
{% if running_tournaments %}
<div class="cell medium-12 large-6 topblock padding10">
<div class="table-row-5-colums-tournament header">
<label class="title">Vos tournois en cours</label>
</div>
{% if running_tournaments %}
{% for tournament in running_tournaments %}
{% include 'tournaments/tournament_row.html' %}
{% endfor %}
{% else %}
<div>
Aucun tournoi en cours
</div>
{% endif %}
{% for tournament in running_tournaments %}
{% include 'tournaments/tournament_row.html' %}
{% endfor %}
</div>
<div>
{% endif %}
{% if upcoming_tournaments %}
<div class="cell medium-12 large-6 topblock padding10">
<div class="table-row-5-colums-tournament header">
<label class="title">Vos tournois à venir</label>
</div>
{% if upcoming_tournaments %}
{% for tournament in upcoming_tournaments %}
{% include 'tournaments/tournament_row.html' %}
{% endfor %}
{% else %}
<div>
Aucun tournoi à venir
</div>
{% endif %}
{% for tournament in upcoming_tournaments %}
{% include 'tournaments/tournament_row.html' %}
{% endfor %}
</div>
{% endif %}
</div>
<div class="cell medium-12 large-6 topblock padding10">
<div>
{% if ended_tournaments %}
<div class="cell medium-12 large-6 topblock padding10">
<div class="table-row-5-colums-tournament header">
<label class="title">Vos tournois terminés</label>
</div>
{% if ended_tournaments %}
{% for tournament in ended_tournaments %}
{% include 'tournaments/tournament_row.html' %}
{% endfor %}
<div class="table-row-5-colums-tournament footer">
{% if ended_tournaments|length >= 12 %}
<div class="small">
<a href="{% url 'all-my-ended-tournaments' %}">voir tous vos tournois terminés</a>
</div>
{% endif %}
{% for tournament in ended_tournaments %}
{% include 'tournaments/tournament_row.html' %}
{% endfor %}
<div class="table-row-5-colums-tournament footer">
{% if ended_tournaments|length >= 12 %}
<div class="small">
<a href="{% url 'all-my-ended-tournaments' %}">voir tous vos tournois terminés</a>
</div>
{% else %}
<div>
Aucun tournoi terminé
</div>
{% endif %}
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
{% endblock %}

Loading…
Cancel
Save