{#- The results region of /knowledge (#knowledge-results): the filter form (knowledge.html) hx-gets the route on a change or keystroke and the alpine-morph extension morphs the fresh fragment over this region in place — a filter change is a fragment, never a navigation. The route renders THIS template alone on an HX-Request. The region is not polled (no hx-trigger), so no live chrome arms here. -#} {% import "_links.html" as links with context %} {% import "_table.html" as tables with context %}
{% if docs %}

{{ docs | length }} of {{ total }} document{{ 's' if total != 1 }} shown.

{% call tables.table(['Title', 'Family', 'Status', 'Links', 'Tags', 'Updated']) %} {% for doc in docs %} {{ doc.title }} {% if doc.family %}{{ doc.family }}{% else %}—{% endif %} {{ doc.status }} {{ doc.links }} {%- for t in doc.tags %} {{ t }}{% endfor %}{% if not doc.tags %}—{% endif %} {{ doc.updated or "—" }} {% endfor %} {% endcall %} {% elif total == 0 %} {{ tables.empty_state('No knowledge documents in this workspace yet — ingest some with', code='cairn knowledge ingest') }} {% else %} {{ tables.empty_state('No documents match the current filters') }} {% endif %}