{# The notifications form. Included by settings_section.html in its editing state. The URL and token fields never carry a stored value: a configured channel renders the redaction placeholder, and the server treats that placeholder as "keep what is stored". Pasting a whole new value replaces it; clearing the field removes the channel. This form is also the one whose submissions are never echoed back on a refusal, so a pasted secret travels exactly once. #}
The master switch. Channels can be configured and tested while it is off.
Events {% for event in section.events %} {% endfor %}
{% for name, label in [("webhook", "Webhook URL"), ("slack", "Slack webhook URL"), ("discord", "Discord webhook URL")] %}
{% if section.url_set[name] %} Configured; the stored URL is never shown. Leave *** to keep it, paste a whole new URL to replace it, or clear the field to remove the channel. {% else %} Not configured. Paste the full URL to enable this channel. {% endif %}
{% endfor %}
Never shown once stored. Leave *** to keep it, paste a new token to replace it, or clear the field to remove it.
The chat the bot posts to.
Uses the monitor's SMTP account (monitor.smtp.*), which is configured from the CLI: wasm config set monitor.smtp.host smtp.example.com