{% extends base.html %} {% block content %} {% import urllib.parse %} {% if not (handler.app.options.auth and handler.request.path == '/disk/public' and not current_user.admin) %}

点击上传或将文件拖拽到此处

{% end %}
{% set paths = handler.request.path.rstrip('/').split('/') %} {% for i, path in enumerate(paths) %} {% if i > (2 if handler.app.options.auth else 1) %} {{ urllib.parse.unquote(path) }} {% end %} {% end %}
{% if handler.get_cookie('display') %} {% else %} {% for doc in entries %} {% end %}
{% if handler.get_cookie('preview') and doc.path.suffix.lower() in ['.jpg', '.jpeg', '.png', '.bmp', '.gif', '.webp'] %} {% elif handler.get_cookie('preview') and doc.path.suffix.lower() in ['.mp3', '.amr', '.ogg', '.wav'] %} {% else %} {% set icon = 'folder.png' if doc.is_dir else handler.icon.get(doc.path.suffix.lower(), 'file.png') %} {% end %} {% if absolute %}{{ doc.path }}{% else %}{{ doc.path.name }}{% end %} {% if not (handler.app.options.auth and handler.request.path == '/disk/public' and not current_user.admin) %} {{ handler.convert_time(doc.mtime) }} {{ handler.convert_size(doc.size) }}
{% end %}
{% end %}