{% extends 'tournaments/base.html' %}
{% block head_title %} Mes tournois {% endblock %}
{% block first_title %} Mes tournois {% endblock %}
{% block second_title %} {{ user.first_name }} {{ user.last_name }} {% endblock %}

{% block content %}

{% include 'tournaments/navigation_base.html' %}

{% load static %}
{% load tz %}

<div class="grid-x">
    <div class="cell medium-6 large-6 topblock my-block">
        <div class="bubble">
            <label class="title">Vos tournois à venir</label>
            {% if upcoming_tournaments %}
            {% for tournament in upcoming_tournaments %}
            {% include 'tournaments/tournament_row.html' %}
            {% endfor %}
            {% else %}
            Aucun tournoi à venir
            {% endif %}
        </div>
    </div>
    <div class="cell medium-6 large-6 topblock my-block">
        <div class="bubble">
            <label class="title">Vos tournois en cours</label>
            {% if running_tournaments %}
            {% for tournament in running_tournaments %}
            {% include 'tournaments/tournament_row.html' %}
            {% endfor %}
            {% else %}
            Aucun tournoi en cours
            {% endif %}

        </div>
    </div>
    <div class="cell medium-6 large-6 topblock my-block">
        <div class="bubble">
            <label class="title">Vos tournois terminés</label>
            {% if ended_tournaments %}
            {% for tournament in ended_tournaments %}
            {% include 'tournaments/tournament_row.html' %}
            {% endfor %}
            {% else %}
            Aucun tournoi terminé
            {% endif %}
        </div>
    </div>
{% endblock %}
