{% extends "base.html" %}
{% load mptt_tags autobreadcrumb %}

{% block head_title %}{% current_title_from_breadcrumbs %}{% endblock %}
{% block head_more_links %}
    <link rel="stylesheet" href="{{ STATIC_URL }}sveedocuments/css/content.css" type="text/css" />
{% endblock %}
{% block body_attr %} class="fixed_width absolute_width"{% endblock %}

{% block content %}
<h2>{% current_title_from_breadcrumbs %}</h2>

{% for node,structure in page_list|tree_info %}
    {% if structure.new_level %}<ul class="list-tree"><li>{% else %}</li><li>{% endif %}
        <div class="tree-node-pointer"><a href="{% url documents-page-details node.slug %}">{{ node.title }}</a></div>
    {% for level in structure.closed_levels %}</li></ul>{% endfor %}
{% endfor %}

{% endblock %}
