{% from '_helpers.jinja' import render_field %} {% macro render_common_settings_form(form, emailprefix, settings_application) %}
{{ render_field(form.notification_urls, rows=5, placeholder="Examples: Gitter - gitter://token/room Office365 - o365://TenantID:AccountEmail/ClientID/ClientSecret/TargetEmail AWS SNS - sns://AccessKeyID/AccessSecretKey/RegionName/+PhoneNo SMTPS - mailtos://user:pass@mail.domain.com?to=receivingAddress@example.com", class="notification-urls" ) }}
Send test notification {% if emailprefix %} Add email {% endif %} Notification debug logs
{{ render_field(form.notification_title, class="m-d notification-title", placeholder=settings_application['notification_title']) }} Title for all notifications
{{ render_field(form.notification_body , rows=5, class="notification-body", placeholder=settings_application['notification_body']) }} Body for all notifications
{{ render_field(form.notification_format , class="notification-format") }} Format for all notifications

You can use Jinja2 templating in the notification title, body and URL.

Token Description
{{ '{{base_url}}' }} The URL of the changedetection.io instance you are running.
{{ '{{watch_url}}' }} The URL being watched.
{{ '{{watch_uuid}}' }} The UUID of the watch.
{{ '{{watch_title}}' }} The title of the watch.
{{ '{{watch_tag}}' }} The watch label / tag
{{ '{{preview_url}}' }} The URL of the preview page generated by changedetection.io.
{{ '{{diff_url}}' }} The URL of the diff output for the watch.
{{ '{{diff}}' }} The diff output - only changes, additions, and removals
{{ '{{diff_added}}' }} The diff output - only changes and additions
{{ '{{diff_removed}}' }} The diff output - only changes and removals
{{ '{{diff_full}}' }} The diff output - full difference output
{{ '{{current_snapshot}}' }} The current snapshot value, useful when combined with JSON or CSS filters

URLs generated by changedetection.io (such as {{ '{{diff_url}}' }}) require the BASE_URL environment variable set.
Your BASE_URL var is currently "{{settings_application['current_base_url']}}"
Warning: Contents of {{ '{{diff}}' }}, {{ '{{diff_removed}}' }}, and {{ '{{diff_added}}' }} depend on how the difference algorithm perceives the change. For example, an addition or removal could be perceived as a change in some cases. More Here
{% endmacro %}