{% extends base.html %} {% block content %} {% import urllib.parse, re %} {% if handler.app.options.upload and not handler.request.path.startswith('/share') %}

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

{% end %}
{% set paths = handler.request.path.rstrip('/').split('/') %}
{% for i, path in enumerate(paths) %} {% if i >= (2 if handler.app.options.auth else 1) %} {% if (i == 2 and handler.app.options.auth) or i == 1 %}{% else %}{{ urllib.parse.unquote(path) }}{% end %} {% end %} {% end %}
{# #} {% if handler.app.options.delete %} {% end %} {% if handler.app.options.auth %} {% end %}
{% if handler.get_cookie('table') %} {% else %} {% if handler.request.path.startswith('/share') %} {% end %} {% for doc in entries %} {% if handler.request.path.startswith('/share') %} {% end %} {% end %}
文件名{% if handler.args.sort == 'name' and handler.args.order == 1 %}{% elif handler.args.sort == 'name' and handler.args.order == - 1 %}{% end %}过期时间修改时间{% if handler.args.sort == 'mtime' and handler.args.order == 1 %}{% elif handler.args.sort == 'mtime' and handler.args.order == - 1 %}{% end %} 文件大小{% if handler.args.sort == 'size' and handler.args.order == 1 %}{% elif handler.args.sort == 'size' and handler.args.order == - 1 %}{% end %} 文件操作
{% if handler.get_cookie('preview') == 'on' and doc.path.suffix.lower() in ['.jpg', '.jpeg', '.png', '.bmp', '.gif', '.webp'] %} {% elif handler.get_cookie('preview') == 'on' and doc.path.suffix.lower() in ['.mp3', '.amr', '.ogg', '.wav'] %} {% elif handler.get_cookie('preview') == 'on' and doc.path.suffix.lower() in ['.mp4', 'mkv'] %} {% 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 %} {{ doc.expired_at or '' }} {{ handler.convert_time(doc.mtime) }} {{ handler.convert_size(doc.size) }} {% if handler.app.options.delete and handler.request.path.startswith('/disk') %} {% end %} {% if handler.app.options.auth %} {% end %} {% if False and handler.app.options.auth %} {% end %}
{% end %}
{% end %}