{% extends "layouts/base.html" %} {% load static %} {% block title %}Notifications - Stream Processor{% endblock %} {% block page_title %}
Notifications
{% endblock %} {% block content %}
Send Notification
Delivered
{{ notifications|length }}
Pending
0
Failed
0
Total Attempts
0
Search & Filter
Notification History
{% if notifications %}
{% for notification in notifications %} {% endfor %}
Recipient Subject Channel Status Scheduled Sent Attempts Actions
{{ notification.recipient }}
{% if notification.template %}
Template: {{ notification.template.name }}
{% endif %}
{{ notification.subject|default:"No Subject" }}
{{ notification.message|truncatechars:50 }}
{{ notification.channel.name }}
{{ notification.channel.get_channel_type_display }}
{% if notification.status == 'completed' %} Delivered {% elif notification.status == 'pending' %} Pending {% elif notification.status == 'failed' %} Failed {% else %} {{ notification.status|title }} {% endif %}
{{ notification.scheduled_at|date:"M d, Y" }}
{{ notification.scheduled_at|time:"H:i" }}
{% if notification.sent_at %}
{{ notification.sent_at|date:"M d, Y" }}
{{ notification.sent_at|time:"H:i" }}
{% else %} Not sent {% endif %}
{{ notification.delivery_attempts }}
{% if is_paginated %} {% endif %} {% else %}
No Notifications Found

{% if request.GET.search or request.GET.status %} No notifications match your current filters. Try adjusting your search criteria. {% else %} No notifications have been sent yet. Create your first notification to get started. {% endif %}

{% if request.GET.search or request.GET.status %} Clear Filters {% endif %} Send Notification
{% endif %}
{% for notification in notifications %} {% if notification.error_message %} {% endif %} {% endfor %} {% endblock %}