{# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for #} {# more information about the licensing of this file. #} {# Recursively print a list of sections and their content #} {% set level = level|default(3, true) %} {% for section in sections %} {% if section.is_terminal() %} {% set ns = namespace(section_tasks=[]) %} {% for taskid in section.get_tasks() if taskid in tasks %} {% set ns.section_tasks = ns.section_tasks + [tasks[taskid]] %} {% endfor %} {% with tasks=ns.section_tasks, tag_list=tag_filter_list, list_id=section.get_id(), title=section.get_title(), config=section.get_config() %} {% include "task_dispensers/task_list.html" %} {% endwith %} {% else %}
{{ _(section.get_title()) }}
{% with sections=section.get_sections_list(), level=level+1 %} {% include "task_dispensers/toc.html" %} {% endwith %}
{% endif %} {% endfor %}