{# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for #} {# more information about the licensing of this file. #} {% set offset = offset | default("0", true) %} {% for section in sections %} {% if section.is_empty() %} {% with id="section_" + offset + "_" + (loop.index | string), title=section.get_title(), config=section.get_config(), level=level, hidden=False, display_subsections=False %} {% include "course_admin/task_dispensers/empty_section.html" %} {% endwith %} {% elif section.is_terminal() %} {% with id="section_" + offset + "_" + (loop.index | string) %} {% include "course_admin/task_dispensers/task_list.html" %} {% endwith %} {% else %}