{% if config.THEME_CONF.get('use_theme_dark', False) %} {% endif %} {% if config.THEME_CONF.get('use_custom_css', False) %} {% endif %} {% set path = [] %} {% set i = namespace(value=0) %} {% macro draw_dir(dir, depth) -%} {% set i.value = i.value + 1 %} {% if depth %} {% do path.append(dir.name) %} {% endif %}

{{ dir.name }}

{% if dir.child_files | length %} {% endif %} {% for child_dir in dir.child_dirs.values() | sort(attribute="name") %} {{ draw_dir(child_dir, depth + 1) }} {% endfor %}
{% if depth %} {% do path.pop() %} {% endif %} {%- endmacro %}
archivy logo

{{ config.SITE_TITLE }}

  v{{ version }}

{% if current_user.is_authenticated and not view_only %} {% if config["RG_INSTALLED"] %}

Tags

{% endif %}

Plugins

Bookmarklet

{% endif %}
{% if current_user.is_authenticated %} {% endif %}
{% with messages = get_flashed_messages(with_categories=True) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %} {% if current_path is defined %}
root {% set split_path = current_path.strip(SEP).split(SEP) %} {% if split_path[0] != '' %} {% for i in range(split_path | length) %} {{split_path[i]}} {% endfor %} {% endif %}
{% if dir is defined %}

{{dir.child_files | length}} file{{dir.child_files | length | pluralize()}}

{{dir.child_dirs | length}} child director{{dir.child_dirs | length | pluralize("y", "ies")}}

{% endif %}
{% endif %} {% block content %}{% endblock %}