{% extends "bitcaster/admin/action_form.html" %} {% load json %} {% block content %}
{% if original.status == "PROCESSED" %} This occurrence has already been processed. Even if some notes and information reflect the current status, the list of recipients contains the actual addresses reached out. {% else %} This occurrence has not been processed yet. It contains ONLY recipients that pass the filtering criteria, and it supposed will receive the notification. {% endif %}
{% if notes %}
{% for note in notes %}
{{ note.0 }} {{ note.1 }}
{% endfor %}
{% endif %}
{# About #}
Status
{{ original.status }}
Date
{{ original.timestamp }}
Event
{{ original.event }} {% if original.event.paused %} pause {% endif %} {% if original.event.locked %} lock {% endif %}
Application
{{ original.event.application }} {% if original.event.application.paused %} pause {% endif %} {% if original.event.application.locked %} lock {% endif %}
Channels
    {% for ch in original.event.channels.all %}
  • {{ ch.name }} {% if not ch.active %} do_not_disturb_off {% endif %} {% if ch.paused %} pause {% endif %} {% if ch.locked %} lock {% endif %}
  • {% empty %} warning No channels configured for this event {% endfor %}
{# Notification #}
Name
Type
Active
Pass filters
{% for notification in notifications %}
{{ notification.name }}
{% if notification.distribution %} distribution: {{ notification.distribution }} {% elif notification.dynamic %} dynamic {% elif notification.external_filtering %} API filtering {% else %}
warning Invalid configuration
{% endif %}
{% if notification.pk in active_notifications %} check_box {% else %} check_box_outline_blank {% endif %}
{% if notification.pk in active_notifications %} check {% else %} do_not_disturb_on {% endif %}
{{ notification.used_message }}
{% endfor %}
{# Recipients #}
Assignment
Address
Channel
User
Message
{% for address_value, channel_name, assignment_pk, channel_pk, notification_pk, message_template_pk in recipients %} {% with assignments|get_item:assignment_pk as asm %}
Asm {{ asm.pk }}
{{ address_value }}
{{ channel_name }}
{{ asm.address.user.username }}
{{ message_template_pk }}
{% endwith %} {% endfor %}
{# Payload #}
Context
{{ original.context|beautify }}
Options
{{ original.options|beautify }}
{# Messages #}
Name
Channel
Valid
{% for msg in all_messages %}
{{ msg.name }}
{{ msg.channel }}
{% if msg.channel.pk in active_channels %} Yes {% else %} Not valid for any active channel {% endif %}
{% endfor %}
{% endblock content %}