{% extends layout %} {% import "macros.html" as m %} {% block content %}
Trash

{% if panels.documents.ok %}

{{ panels.documents.data.count }} shown, offset {{ panels.documents.data.offset }}.

{% if panels.documents.data.documents %} {% for item in panels.documents.data.documents %} {% endfor %}
TitleSourceMedia typeStatusChunks
{{ item.title or item.source_id }} {{ item.source }} {{ item.media_type }} {{ m.state(item.status) }}{% if item.status_detail %} {{ item.status_detail }}{% endif %} {{ item.chunk_count if item.chunk_count is not none else '—' }}
{% else %}{{ m.empty('Nothing indexed matches this filter.') }}{% endif %} {# Outside the "is there anything" branch on purpose. Paging past the end renders an empty table, and a Previous link that only appeared when the page had rows would strand whoever went one page too far. #} {% else %}{{ m.failed(panels.documents) }}{% endif %}

Adding documents

There is no upload on any network surface of manicule, deliberately. Accepting bytes over HTTP and writing them into the corpus is an ingest path with no filesystem permission check and no path an operator chose, and this is the surface an unattended caller reaches.

Documents arrive one of two ways:

Deleting is soft and always reversible from the Trash; there is no hard delete here either.

{% endblock %}