{% from "partials/_macros.html" import empty_row %} {# Build the query-string portion that the auto-refresh poll reuses, so a user-picked filter / window survives the swap. ``_rows`` is the endpoint that receives it. #} {%- set qs_parts = [] -%} {%- if limit -%}{%- set _ = qs_parts.append('limit=' ~ limit) -%}{%- endif -%} {%- for op in selected_ops -%}{%- set _ = qs_parts.append('op=' ~ op) -%}{%- endfor -%} {%- if ns_query -%}{%- set _ = qs_parts.append('ns=' ~ (ns_query | urlencode)) -%}{%- endif -%} {%- set qs = qs_parts | join('&') -%} {% for r in rows %} {{ r.ts }} {{ r.op }} {{ r.ns or '—' }}
view
{{ r.json }}
{% else %} {{ empty_row(4, "No oplog entries match.") }} {% endfor %}