{# The webhook delivery panel (ADR-0020). Every value is the service's own: the state and the config `problems` come from `WebhookEmitter.status()`, which surfaces the existing `problems` surface verbatim; the last delivery is the newest entry in the bounded history. The signing secret is never here — only whether an endpoint is signed #}
{{ status.state_label }}
{% if status.state == 'not_configured' %} {# Opt-in silence. Deliberately not "healthy" and not "failing": nothing is set up, so nothing is delivered and no event has been missed. #}

{{ tr('No webhook endpoints are configured, so nothing is delivered. Set CR_WEBHOOKS or add endpoints under [webhooks.endpoints] in the config file to send notifications.') }}

{% endif %} {% if status.problems %}
{% for problem in status.problems %} {# The service's own wording, translated for display; the console never restates the rule that raised it. #} {% endfor %}
{% endif %} {% if status.endpoints %} {% endif %}