{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': _('Admin'), 'url': url_for('admin.admin_dashboard')}, {'text': _('Webhooks')} ] %} {{ page_header( icon_class='fas fa-plug', title_text=_('Webhooks'), subtitle_text=_('Manage webhook integrations'), breadcrumbs=breadcrumbs, actions_html='' + _('Create Webhook') + '' ) }}
{% if webhooks %}
{% for webhook in webhooks %} {% endfor %}
{{ _('Name') }} {{ _('URL') }} {{ _('Events') }} {{ _('Status') }} {{ _('Statistics') }} {{ _('Actions') }}
{{ webhook.name }}
{% if webhook.description %}
{{ webhook.description }}
{% endif %}
{{ webhook.url[:50] }}{% if webhook.url|length > 50 %}...{% endif %}
{% if webhook.events|length > 3 %} {% for event in webhook.events[:3] %} {{ event }} {% endfor %} +{{ webhook.events|length - 3 }} more {% else %} {% for event in webhook.events %} {{ event }} {% endfor %} {% endif %}
{% if webhook.is_active %} {{ _('Active') }} {% else %} {{ _('Inactive') }} {% endif %}
{{ _('Total') }}: {{ webhook.total_deliveries }}
{{ _('Success') }}: {{ webhook.successful_deliveries }}
{{ _('Failed') }}: {{ webhook.failed_deliveries }}
{% else %}

{{ _('No webhooks configured') }}

{{ _('Create Your First Webhook') }}
{% endif %}
{% endblock %}