Files
webhooker/templates/event_request.html
T
sneak 5bfe5e74bd
check / check (push) Successful in 3m19s
Show an event's entrypoint and request headers (closes #389)
An expanded event in the event log and the event's own page now show
the entrypoint the event arrived at (its description, "Entrypoint"
when it has none, or "deleted entrypoint"; never its URL) and the
full request headers, one per line, sorted by name. Both pages draw
them through one shared template, event_request.html. The event
columns now load entrypoint_id and headers, and the webhook's
entrypoints are read once per page.

Model: opus-5-5
2026-10-03 01:19:09 +00:00

17 lines
683 B
HTML

{{define "event_request"}}
<!-- The entrypoint an event arrived at and its request headers, as
handlers.EventLogView carries them: the same in the event log and
the event's own page. The entrypoint's URL is never shown. -->
<div class="space-y-2 text-xs">
<p class="text-gray-500">Arrived at <span class="text-gray-900">{{.Entrypoint}}</span></p>
{{if .Headers}}
<p class="text-gray-500">Request headers</p>
<div class="rounded-md border border-gray-200 bg-white p-2 font-mono text-gray-700 break-all">
{{range .Headers}}<div>{{.}}</div>{{end}}
</div>
{{else}}
<p class="text-gray-500">No request headers.</p>
{{end}}
</div>
{{end}}