{% extends "base.html" %} {% from "components/ui.html" import card, empty, filter_bar, webhook_state %} {% block title %}Webhooks ยท {{ APP_NAME }}{% endblock %} {% block heading %}Webhooks{% endblock %} {% block subheading %}
Where the service posts what changed in your accounts
{% endblock %} {% block actions %} {% if can_create %}New webhook{% endif %} {% endblock %} {% block content %} {% call card("Webhooks", meta=webhooks | length, tight=True) %}
{{ filter_bar(bar) }}
{% if webhooks %}
{% for hook in webhooks %} {% endfor %}
URLEventsAccountsLast deliveryState
{{ hook.url }} {% for event in hook.events %}{{ event }} {% endfor %} {% if hook.accounts is none %}every account you may read{% else %}{% for account in hook.accounts %}{{ names.get(account, account) }}{% if not loop.last %}, {% endif %}{% endfor %}{% endif %} {{ hook.last_delivery_at | when }} {{ webhook_state(hook.last_error) }}
{% else %} {{ empty("No webhook matches." if bar.chips else "No webhook yet.") }} {% endif %} {% endcall %} {% endblock %}