{% extends "admin/file/list.html" %} {% block file_list_table %} {% block list_header scoped %} {% if actions %} {% endif %} {% endblock %} {% for name, path, is_dir, size, date in items %} {% block list_row scoped %} {% if actions %} {% endif %} {% if is_dir %} {% else %} {% endif %} {% endblock %} {% endfor %}
  {{ _gettext('Name') }} {{ _gettext('Size') }}
{% if not is_dir %} {% endif %} {% block list_row_actions scoped %} {% if admin_view.can_rename and path and name != '..' %} {% endif %} {%- if admin_view.can_delete and path -%} {% if is_dir %} {% if name != '..' and admin_view.can_delete_dirs %}
{{ delete_form.path(value=path) }} {{ delete_form.csrf_token }}
{% endif %} {% else %}
{{ delete_form.path(value=path) }} {{ delete_form.csrf_token }}
{% endif %} {%- endif -%} {% endblock %}
{{ name }} {% if admin_view.can_download %} {{ name }} {% else %} {{ name }} {% endif %} {% if fileType(name) == 'zip' %} (解压) {% endif %} {% if fileType(name) in ['png', 'jpg', 'gif'] %} || 图片链接:{{ base_static_url }}{{ path }} {% endif %} {% if fileType(name) in ['html'] %} || 页面链接:{{ base_static_url }}{{ path }} {% endif %} {% if fileType(name) in ['apk'] %} || 下载链接:{{ base_static_url }}{{ path }} {% endif %} {{ size|filesizeformat }}
{% endblock %}