{% extends "base.html" %} {% block title %}{{ area.tag }} - File Area{% endblock %} {% block content %}

{{ area.name or area.tag }}

{{ area.tag }}{% if area.description %} — {{ area.description }}{% endif %}

Upload: {{ area.upload_permission }} {% if area.password %} — password-protected{% endif %}

{% if current_user.is_admin %}

Storage: {{ area.storage_path or '(not set)' }}

{% endif %}
{% if files %} {% macro sort_hdr(label, col, default_dir) %} {% set active = sort == col or sort == '-' ~ col %} {% if sort == col %}{% set next = '-' ~ col %}{% elif sort == '-' ~ col %}{% set next = col %}{% else %}{% set next = default_dir %}{% endif %} {% endmacro %} {{ sort_hdr('Filename', 'name', 'name') }} {{ sort_hdr('Size', 'size', '-size') }} {{ sort_hdr('Date', 'date', '-date') }} {% for f in files %} {% endfor %}
{{ label }}{% if sort == col %} ▲{% elif sort == '-' ~ col %} ▼{% endif %} Description
{% if f.is_image %} {% endif %} {{ f.name }} {{ '%.1f'|format(f.size / 1024) }} KB {{ f.mtime.strftime('%Y-%m-%d') }} {% if f.description %} {% set short_desc = f.description.split('\n')[0][:120] %} {{ short_desc | strip_ansi }} {% if '\n' in f.description or f.description|length > 120 %}
full description
{{ f.description | ansi_art }}
{% endif %} {% endif %}
share
{% else %}
No files in this area yet.
{% endif %}
{% if pagination and pagination.pages > 1 %} {% endif %} {% set can_upload = (area.upload_permission == 'users') or (area.upload_permission == 'sysop' and current_user.is_admin) %} {% if can_upload %}
Upload File
{% if area.password %}
{% endif %}
{% endif %}
← All file areas
{% endblock %}