{{ hook.url }}
{% if hook.last_status %}{{ hook.last_status }}{% endif %}{{ hook.events|map("event_label")|join(", ") }}{% if hook.last_delivery_at %} · {{ _("last delivery") }} {{ when(hook.last_delivery_at) }}{% endif %}
{% if not hook.active %}{{ _("Disabled after {count} consecutive failures: no events are sent to it any more. Re-enable it once the receiver is fixed.", count=hook.failures) }}
{% endif %}
{% if not hook.active %}{{ action("/o/" ~ org.slug ~ "/-/webhooks/" ~ hook.id ~ "/reactivate", _("Re-enable"), kind="primary") }}{% endif %}
{{ action("/o/" ~ org.slug ~ "/-/webhooks/" ~ hook.id ~ "/test", _("Send a test")) }}
{{ action("/o/" ~ org.slug ~ "/-/webhooks/" ~ hook.id ~ "/delete", _("Delete"), confirm=_("Delete this webhook? The tool receiving it will no longer be notified."), kind="danger") }}