check / check (push) Waiting to run
Every 400, 403, 404 and 500 on an admin page now answers with an error page in the normal layout: one fixed line for the status and a link back to the webhook list, or to sign-in when nobody is signed in. The router's handler for unknown paths and the CSRF middleware's refusal use the same page. Status codes are unchanged. The receiver, the healthcheck and /metrics keep their plain answers. If the error page itself cannot render, the answer is the same status in plain text. Model: opus-5-5
16 lines
463 B
HTML
16 lines
463 B
HTML
{{template "base" .}}
|
|
|
|
{{define "title"}}{{.StatusText}} - Webhooker{{end}}
|
|
|
|
{{define "content"}}
|
|
<div class="max-w-4xl mx-auto px-6 py-12">
|
|
<h1 class="text-2xl font-medium text-gray-900 mb-4">{{.Status}} {{.StatusText}}</h1>
|
|
<p class="text-gray-600 mb-6">{{.Message}}</p>
|
|
{{if .User}}
|
|
<a href="/sources" class="btn-secondary">Back to webhooks</a>
|
|
{{else}}
|
|
<a href="/pages/login" class="btn-primary">Sign in</a>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|