{% if uploaded %}⬆ pickup {% endif %}{{ items|length }} item{{ '' if items|length == 1 else 's' }} · expires in {{ expires_in|dur }}
{% if items %}⬇ zip{% endif %}
{% if uploaded %}
📦 Pickup {{ name }}
— download files below, or on nh3-dev grab ~/booth-data/{{ name }}/
{% endif %}
{% if not items %}
This booth is empty.
{% else %}
{% for it in items %}
{% if it.doc and it.rendered is not none %}
{# Docs render INLINE, collapsible, and closable — not a link to a
separate page. is native collapse (works with JS off);
the ✕ hides the item for the session (JS, progressive enhancement).
The item spans the full grid width so prose has room to read. #}
▸{{ it.name }}⤢⬇
{% if it.rendered_html %}
{{ it.rendered|safe }}
{% else %}
{{ it.rendered }}
{% endif %}
{% else %}
{% if it.kind == 'image' %}
{% elif it.kind == 'video' %}
{# preload="none": a booth of a dozen webms was fetching them
all at page load ("metadata" still pulls real ranges per
file); nothing loads until the viewer hits play #}
{% elif it.kind == 'audio' %}
{% elif it.doc %}
{# a doc too large to inline (over DOC_MAX_BYTES) still links out #}
📄 {{ it.name }}
{% else %}
⬇ {{ it.name }}
{% endif %}
{% if it.kind == 'other' %}
{% if it.caption %}{{ it.caption }}{% endif %}
{% else %}
⬇{{ it.caption or it.name }}
{% endif %}
{% endif %}
{% endfor %}