{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}{{ channel_name }} - Notification Channel - Pychestrate Configuration{% endblock %} {% block content %} {{ ui.breadcrumb([("Notifications", url_for('config.notifications_overview')), (channel_name, None)]) }} {% if unprotected %} {% endif %}

Settings

{% for setting in settings %}
{{ setting.label }}
{% if setting.secret and setting.in_vault %} Stored in the secrets vault as {{ setting.vault_name }} {% elif setting.secret %} Stored unprotected {% elif setting.is_mapping %} {{ setting.value | tojson }} {% else %} {{ setting.value | display }} {% endif %}
{% endfor %}
{% if can_manage %}

Send a test message

{{ recipient_help }}
{% if secret_fields %}

Replace a secret

{% for field in secret_fields %}
{% endfor %}

The new value becomes a new version of the secret in the vault; the channel follows it.

{% endif %}

Manage

{% if not using_rules %}
{{ ui.confirm_button("Delete Channel", class="btn btn-danger") }}
{% endif %}
{% if using_rules %}

Rules send through this channel ({% for rule in using_rules %}{{ rule.event_label | lower }}{{ ', ' if not loop.last }}{% endfor %}). Delete them before deleting the channel.

{% endif %}
{% endif %}

Recent messages through this channel

{% for row in deliveries %} {% else %} {{ ui.empty_state("Nothing has been sent through this channel yet.", hint="Send a test message to check that it works.", colspan=5) }} {% endfor %}
TimeEventToResultDetail
{{ row.when | format_datetime('%Y-%m-%d %H:%M:%S') }} {{ row.event_label }} {{ row.recipient }} {{ ui.status_badge(row.outcome) }} {{ row.detail if row.detail else '' }}
{% endblock %}