{% extends "base.html" %} {% import "_macros.html" as m with context %} {% block title %}Files{% endblock %} {% block content %} {% set own = owner if is_admin else "" %}

Files

Your home folder. Websites are in sites, server logs in logs. You can also connect over SFTP with your panel login.

{{ m.owner_switch(accounts, owner, "/files") }}
{% if listing is none %}
{% call m.empty("No hosting accounts yet", "Files belong to hosting accounts. Create one first.") %}Create account{% endcall %}
{% else %} {% set cwd = listing.path %}
{{ m.csrf_field() }}
{{ m.csrf_field() }}
{{ m.csrf_field() }}
{% if cwd != "/" %} {% endif %} {% for f in listing['items'] %} {% set top = cwd == "/" %} {% else %} {% endfor %}
NameSizeChangedMode
{{ m.icon("up") }}Up one level
{% if not top %}{% endif %} {% if f.type == "dir" %}{{ m.icon("folder") }}{{ f.name }} {% elif f.type == "link" %}{{ m.icon("link") }}{{ f.name }} {% else %}{{ m.icon("file") }}{{ f.name }}{% endif %} {{ "" if f.type == "dir" else f.size|size }} {{ f.mtime|time }} {{ f.mode }} {% if f.type == "file" %} {{ m.icon("download") }} {% if f.name.endswith(('.zip', '.tar', '.tar.gz', '.tgz', '.tar.bz2', '.tar.xz')) %}
{{ m.csrf_field() }}
{% endif %} {% endif %} {% if not top %} {% endif %}
This folder is empty. Drop files here to upload them.
{% endif %} {% endblock %}