{% extends "base.html" %} {% load static %} {% load i18n %} {% load pipeline %} {% block content %} {# The navbar to select the tournament #}
{# For each tournament, we draw a div #} {% for tournament in tournaments %}
{% include "draw/tournament_content.html" with tournament=tournament %}
{% empty %}
{% trans "You don't participate to any tournament." %}
{% endfor %}
{% endblock %} {% block extrajavascript %} {# Import the list of tournaments and give it to JavaScript #} {{ tournaments_simplified|json_script:'tournaments_list' }} {{ problems|length|json_script:'problems_count' }} {# This script contains all data for the draw management #} {% javascript 'draw' %} {% endblock %}