{#  -*- coding: utf-8 -*- #}
{% extends 'base.tmpl' %}
{% import 'ui_helper.tmpl' as ui with context %}
{% block content %}
{{ ui.breadcrumbs(crumbs) }}
{% if folders or files %}
<ul>
{% for name in folders %}
    <li><a href="{{ name|e }}" class="listing-folder">{{ name|e }}</a>
{% endfor %}
{% for name in files %}
    <li><a href="{{ name|e }}.html" class="listing-file">{{ name|e }}</a>
{% endfor %}
</ul>
{% endif %}
{% if code %}
    <h1>{{ title }}
        {% if source_link %}
            <small><a href="{{ source_link }}">({{ messages("Source") }})</a></small>
        {% endif %}
        </h1>
    {{ code }}
{% endif %}
{% endblock %}
