{% extends base.html %} {% block content %} {% import urllib.parse, re %} {% if handler.app.options.upload and not (handler.app.options.auth and handler.request.path.startswith('/disk/public') and not current_user.admin) %}
点击上传或将文件拖拽到此处
文件名{% 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.request.path.startswith('/share') %}过期时间 | {% 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'] %}
|
{% if handler.request.path.startswith('/share') %}
{{ doc.expired_at or '' }} | {% end %}{% if handler.app.options.delete and not (handler.request.path.startswith('/disk/public') and not current_user.admin)%} {% end %} {% 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) }} |