{% extends "sveedocuments/page_details/subbase.html" %} {% load i18n mptt_tags documents_markup documents_utils %} {% block body_attr %} class="columned cols-by-two"{% endblock %} {% block content %} {% document_context page_instance %} {{ page_instance.title }}
{{ document_render }}
{% endblock %} {% comment %}TODO: There is a problem with the context tags which update context only in their blocks, so actually the tag must be rendered twice, one for content and one for TOC menu{% endcomment %} {% block context_menu %}{% document_context page_instance %}
{% if document_toc %}

{% trans "Table of content" %}

{{ document_toc }}
{% endif %} {% with document_navigation as tree_descendants %} {% if tree_descendants %}

{% trans "Navigation" %}

    {% recursetree tree_descendants %} {{ node.title }} {% if not node.is_leaf_node %}
      {{ children }}
    {% endif %} {% endrecursetree %}
{% endif %} {% endwith %}
{% endblock %}