{% extends "base.html" %} {% from "_macros.html" import icon %} {# The file pages' frame: the chat sidebar, a topbar, and the page inside `data-in-place-root`, so every change made here (upload, new file or folder, rename, move, delete, restore) is saved in place (web/in_place.py). Two shapes. The explorer and a file (`explorer = true`) take the whole window, like a file manager: a path bar, the folder tree, and the list or the file, each scrolling in itself. Trash and undo are pages to read and keep the narrow measure of the settings pages. #} {% block head %} {% block files_head %}{% endblock %} {% endblock %} {% block body_attrs %} data-authenticated="true"{% endblock %} {% macro flashes() -%} {% if saved %}
{{ icon("check", "icon--sm") }} {{ saved }}
{% endif %} {% if error %}
{{ icon("warning", "alert__icon") }} {{ error }}
{% endif %} {%- endmacro %} {% block body %}
{% include "partials/sidebar.html" %}
{% include "partials/_sidebar_toggle.html" %}

{% block heading %}{{ t("Files") }}{% endblock %}

{% block actions %}{% endblock %}
{% if explorer|default(false) %}
{{ flashes() }}
{% include "files/_crumbs.html" %}
{% block tools %}{% endblock %}
{% block files_content %}{% endblock %}
{% else %}
{{ flashes() }} {% block page_content %}{% endblock %}
{% endif %}
{% endblock %}