{% if filter_error %} {% endif %} {% if events %}
{% for event in events %} {# Per-adapter one-line summary, dispatched by adapter name with a generic fallback (no hardcoded list). Captured once so it serves both the Subject cell and the map popup (via data-subject). #} {% set subject_summary %}{% include ["_event_summaries/" ~ event.adapter ~ ".html", "_event_summaries/_default.html"] %}{% endset %} {# Location: geocoder-first, then top-level named fields. When the geocoder resolved no named place, fall back generically to ANY other _enriched. carrying county/state (e.g. usgs_site, v0.8.0) so the pattern works for future enrichers without per-adapter logic. #} {% set d = (event.data.get('data') or {}).get('data') or {} %} {% set enr = d.get('_enriched') or {} %} {% set gc = enr.get('geocoder') or {} %} {% set ns = namespace( local=(gc.get('city') or gc.get('county') or d.get('city') or d.get('county')), state=(gc.get('state') or d.get('state')), country=(gc.get('country') or d.get('country'))) %} {% if not (ns.local or ns.state) %} {% for _src, b in enr.items() if _src != 'geocoder' and b is mapping %} {% if not ns.local %}{% set ns.local = b.get('county') or b.get('city') %}{% endif %} {% if not ns.state %}{% set ns.state = b.get('state') %}{% endif %} {% endfor %} {% endif %} {% set loc_parts = [ns.local, ns.state, ns.country] | select | list %} {% endfor %}
Time Location Subject Adapter
{{ event.time_human }} {% if loc_parts %}{{ loc_parts | join(', ') }}{% elif gc.get('landclass') %}{{ gc.landclass }}{% else %}—{% endif %} {{ subject_summary | trim or '—' }} {{ event.adapter }}
{# Real offset paginator (v0.7.3). Each link carries offset + the filter query_string (which excludes cursor/offset); limit persists via query_string. #} {# base_path passed into the macro (macros don't see render-context vars). #} {% macro page_link(base, off, label, cls) %} {% set qs = "offset=" ~ off ~ ("&" ~ query_string if query_string else "") %} {{ label }} {% endmacro %} {% else %}

No events match the filters.

{% endif %} {% if oob_pills %} {# Out-of-band update of the page-level active-pills bar on each HTMX swap. #}
{% include "_active_pills.html" %}
{% endif %}