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

{% block head_title %}Classement 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 %}

{% load static %}
{% if tournament.display_rankings %}

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

    <div class="grid-x padding-bottom">
        <div class="cell medium-6 large-6 my-block">
            <div class="bubble">

                {% if rankings %}
                <label class="title">{{ tournament.ranking_count_display }}</label>

                    {% for ranking in rankings %}
                        {% include 'tournaments/ranking_row.html' %}
                    {% endfor %}
                {% else %}
                    <div class="ranking">
                        <div class="cell medium-12">
                            <div class="semibold">
                                Aucun classement disponible
                            </div>
                        </div>
                    </div>
                {% endif %}

            </div>
        </div>
    </div>
{% endif %}
{% endblock %}
