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

点击上传或将文件拖拽到此处(截图可粘贴)

{% end %}
{% if handler.app.options.auth %} {% if current_user.admin %} {% end %} {% end %} {% if handler.mobile %}
{% end %} {% set paths = handler.request.path.rstrip('/').split('/') %} {% for i, path in enumerate(paths) %} {% if i >= (2 if handler.app.options.auth else 1) %} {{ 'home' if ((i == 2 and handler.app.options.auth) or i == 1) else urllib.parse.unquote(path) }} {% end %} {% end %}
{% if handler.get_cookie('table') %}
{% set col = 3 if handler.get_cookie('preview') and any([doc.path.suffix.lower() in ['.mp3', '.amr', '.ogg', '.wav'] for doc in entries]) else 2 %} {% for doc in entries %} {% end %}
{% else %} {% if handler.request.path.startswith('/share') %} {% end %} {% for doc in entries %} {% if handler.request.path.startswith('/share') %} {% end %} {% end %}
文件名{% if handler.args.sort in [None, 'name'] and handler.args.order in [None, 1] %}{% elif handler.args.sort == 'name' and handler.args.order == - 1 %}{% end %}过期时间文件操作 修改时间{% if handler.args.sort == 'time' and handler.args.order == 1 %}{% elif handler.args.sort == 'time' 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') 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 %} {{ doc.expired_at or '' }} {% if (handler.app.options.auth and handler.request.path.startswith('/disk/public') and not current_user.admin) %} {% elif handler.app.options.auth %} {% end %} {{ handler.convert_time(doc.mtime) }} {{ handler.convert_size(doc.size) }}
{% end %}
{% end %}