Files
notifications-admin/app/templates/views/jobs/job.html

73 lines
2.4 KiB
HTML
Raw Normal View History

{% extends "withnav_template.html" %}
{% from "components/banner.html" import banner %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/page-header.html" import page_header %}
2023-08-30 11:07:38 -04:00
{% from "components/components/back-link/macro.njk" import usaBackLink %}
2025-04-10 12:35:04 -07:00
{% block service_page_title %}
2024-02-22 11:59:12 -08:00
{{ "Message status" }}
{% endblock %}
{% block maincolumn_content %}
2024-07-30 14:24:02 -04:00
{{ page_header("Message status") }}
{% if not job.finished_processing %}
<p class="max-width-full">This page refreshes automatically to show the latest message activity delivery rates, details, and reports.<br>You can watch it in progress or check back later.</p>
{% endif %}
<div data-job-id="{{ job.id }}" data-feature="{{FEATURE_SOCKET_ENABLED | lower}}" data-host="{{ api_public_url }}">
2025-04-10 12:35:04 -07:00
{% if not job.finished_processing %}
<div
data-resource="{{ updates_url }}"
{% if FEATURE_SOCKET_ENABLED %}
data-socket-update="status"
{% else %}
data-module="update-content"
{% endif %}
data-key="status"
data-form=""
>
{% endif %}
2025-01-21 10:46:30 -08:00
{{ partials['status']|safe }}
2025-04-10 12:35:04 -07:00
{% if not job.finished_processing %}
2025-01-21 10:46:30 -08:00
</div>
2025-04-10 12:35:04 -07:00
{% endif %}
2023-12-18 16:09:54 -05:00
{% if not finished %}
<div
data-resource="{{ updates_url }}"
2025-04-10 12:35:04 -07:00
{% if FEATURE_SOCKET_ENABLED %}
data-socket-update="counts"
{% else %}
data-module="update-content"
{% endif %}
2023-12-18 16:09:54 -05:00
data-key="counts"
2025-04-10 12:35:04 -07:00
data-form=""
2023-12-18 16:09:54 -05:00
>
{% endif %}
{{ partials['counts']|safe }}
{% if not finished %}
</div>
{% endif %}
2024-07-29 15:32:53 -04:00
<p class="notification-status max-width-full">
Messages are sent immediately to the cell phone carrier, but will remain in "pending" status until we hear back from the carrier they have received it and attempted deliver. More information on <a class="usa-link" href="{{ url_for('main.message_status') }}">delivery status</a>.
2024-01-15 14:17:18 -08:00
</p>
2023-12-18 16:09:54 -05:00
{% if not job.processing_finished %}
<div
data-resource="{{ updates_url }}"
2025-04-10 12:35:04 -07:00
{% if FEATURE_SOCKET_ENABLED %}
data-socket-update="notifications"
{% else %}
data-module="update-content"
{% endif %}
2023-12-18 16:09:54 -05:00
data-key="notifications"
data-form=""
>
{% endif %}
{{ partials['notifications']|safe }}
{% if not job.processing_finished %}
</div>
{% endif %}
2025-04-10 12:35:04 -07:00
</div>
{% endblock %}