{% extends "base.html" %} {% block title %}{{ area.tag }} - File Area{% endblock %} {% block content %}
{{ area.tag }}{% if area.description %} — {{ area.description }}{% endif %}
Upload: {{ area.upload_permission }}
{% if area.password %} — password-protected{% endif %}
Storage: {{ area.storage_path or '(not set)' }}
| {{ label }}{% if sort == col %} ▲{% elif sort == '-' ~ col %} ▼{% endif %} | {% endmacro %} {{ sort_hdr('Filename', 'name', 'name') }} {{ sort_hdr('Size', 'size', '-size') }} {{ sort_hdr('Date', 'date', '-date') }}Description | ||
|---|---|---|---|
|
{% if f.is_image %}
|
{{ '%.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 }}
share |