{% 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) %}
点击上传或将文件拖拽到此处(截图可粘贴)
文件名{% 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 == '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.app.options.auth and handler.request.path.startswith('/disk/public') and not current_user.admin) %}
{% else %}
|
{{ handler.convert_time(doc.mtime) }} | {{ handler.convert_size(doc.size) }} |