{# Memory browse table + filters + pagination, included by memory.html. Extracted verbatim from the pre-merge Memory page so its assertions (rows, search empty state, hx-delete buttons, pagination) hold. #}
{% for m in memories %} {% else %} {% endfor %}
ContentKindLayerSource Saved
{% if m.content | length > 80 %}{% endif %} {{ m.kind }} {{ m.layer }} {{ m.source }} {{ m.created_at | timeago }}
No memories {%- if q %} matching your search{% endif %}.
{% if not q and total > page_size %}

Showing {{ offset + 1 }}–{{ [offset + page_size, total] | min }} of {{ total }} {% if offset > 0 %} · Previous {% endif %} {% if offset + page_size < total %} · Next {% endif %}

{% elif q %}

Search shows a single ranked page; refine terms to narrow further.

{% endif %}