{% extends "base.html" %} {% from "components/ui.html" import breadcrumb, card, danger_card, empty, fact, facts, related, secret_card, webhook_state with context %} {% block title %}Webhook · {{ APP_NAME }}{% endblock %} {% block heading %}{{ webhook.url }}{% endblock %} {% block subheading %}{{ breadcrumb([("Webhooks", "/ui/webhooks"), (webhook.url, None)]) }}{% endblock %} {% block content %} {% if secret %} {% call secret_card("Signing secret", secret) %}Keep it with the receiver. It checks X-Mailbox-Signature with it. Only this service keeps it besides, encrypted.{% endcall %} {% endif %} {% set state %}{{ webhook_state(webhook.last_error, detail=False) }}{% endset %} {% call facts("Webhook", tags=state) %} {{ fact("URL", webhook.url, cls="mono") }} {% call fact("Events") %}{% for event in webhook.events %}{{ event }} {% endfor %}{% endcall %} {% call fact("Accounts") %}{% if webhook.accounts is none %}every account you may read, also later ones{% else %}{% for account in webhook.accounts %}{{ names.get(account, account) }}{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}{% endcall %} {{ fact("Created", webhook.created_at | when) }} {{ fact("Last delivery", webhook.last_delivery_at | when) }} {% if webhook.last_error %}{{ fact("Last error", webhook.last_error) }}{% endif %} {{ fact("Id", webhook.id, cls="mono") }} {% endcall %} {% call related("Last deliveries", count=webhook.deliveries | length, meta="the newest 20 posts") %}
| When | Events | Answer | Delivery |
|---|---|---|---|
| {{ attempt.at | when }} | {{ attempt.events }} | {% if attempt.error is none %}{{ attempt.status }} {% else %}{{ attempt.status if attempt.status is not none else "no answer" }}{{ attempt.error }}{% endif %} | {{ attempt.delivery_id[:16] }}… |