{#- The results region of /wiki (#wiki-results): the search input in wiki.html hx-gets the route on input and the alpine-morph extension morphs the fresh fragment over this region in place — a query is a fragment, never a navigation. The route renders THIS template alone on an HX-Request. The state-filter links and the form stay outside the region (state filters are URL-carrying navigations by contract). 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 %} {#- The repo headings keep the other catalog filters on their links; the q/repo values come from the route context (the state links in wiki.html compute the same base for their own row). -#} {%- set base_q = {} %} {%- if filters.q %}{% set _ = base_q.update({'q': filters.q}) %}{% endif %} {%- if filters.repo %}{% set _ = base_q.update({'repo': filters.repo}) %}{% endif %}
{% if manifest_error %}

Cannot read the wiki manifest: {{ manifest_error }}.

{% elif pages %} {% for repo, rows in pages | groupby("repo") %}

{{ repo }} ({{ rows | length }})

{% call tables.table(['Page', 'State']) %} {% for p in rows %} {{ p.title }} {%- if p.description %} — {{ p.description }}{% endif %} {{ p.state }} {{ p.staleness }} {% endfor %} {% endcall %} {% endfor %} {% else %} {%- set filtered = filters.q or filters.state or filters.repo %} {{ tables.empty_state('No wiki pages match the current filters' if filtered else 'No wiki pages yet — generate some with', code='' if filtered else 'cairn wiki generate') }} {% endif %}