{% extends 'tournaments/base.html' %}

{% block head_title %}Poules du {{ tournament.display_name }}{% endblock %}
{% block first_title %}{{ tournament.event.display_name }}{% endblock %}
{% block second_title %}{{ tournament.display_name }}{% endblock %}
{% block title_link %}{% url 'tournament' tournament.id %}{% endblock %}

{% block content %}
{% if tournament.display_group_stages %}

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

    {% for step in unique_steps %}
    <div class="grid-x">
        {% for group_stage in group_stages %}
            {% if group_stage.step == step %}
                {% include 'tournaments/group_stage_cell.html' %}
            {% endif %}
        {% endfor %}
    </div>
    {% endfor %}

    {% endif %}
{% endblock %}
