{#  -*- 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 }}">📂&nbsp;{{ name|e }}</a>
{% endfor %}
{% for name in files %}
    <li><a href="{{ name|e }}.html">📄&nbsp;{{ 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 %}

{% block sourcelink %}
{% if source_link and show_sourcelink %}
    {{ ui.show_sourcelink(source_link) }}
{% endif %}
{% endblock %}
