{% import "macros/datatable.html" as datatable %}
{% macro created_at_column(webhook_log) %}
{{ webhook_log.created_at.strftime('%x %X') }}
{% endmacro %}
{% macro event_column(webhook_log) %}
{{ webhook_log.event }}
{% endmacro %}
{% macro success_column(webhook_log) %}
{% if webhook_log.success %}
{{ icons.check('w-4 h-4 text-green-500') }}
{% else %}
{{ icons.x_mark('w-4 h-4 text-red-500') }}
{% endif %}
{% endmacro %}
{% macro attempt_column(webhook_log) %}
{{ webhook_log.attempt }}
{% endmacro %}
{% macro error_column(webhook_log) %}
{% if webhook_log.error_type %}
{{ webhook_log.error_type }}
{% else %}
—
{% endif %}
{% endmacro %}
{% macro actions_column(webhook_log) %}