diff --git a/app/main/views/notifications.py b/app/main/views/notifications.py index f7351249f..c501eb0b1 100644 --- a/app/main/views/notifications.py +++ b/app/main/views/notifications.py @@ -70,6 +70,8 @@ def view_notification(service_id, notification_id): help=get_help_argument() ), partials=get_single_notification_partials(notification), + created_by=notification.get('created_by'), + created_at=notification['created_at'], help=get_help_argument() ) diff --git a/app/templates/partials/jobs/status.html b/app/templates/partials/jobs/status.html index c66bc6427..c243ce572 100644 --- a/app/templates/partials/jobs/status.html +++ b/app/templates/partials/jobs/status.html @@ -1,5 +1,5 @@
-

+

{% if job.scheduled_for %} {% if job.processing_started %} Sent by {{ job.created_by.name }} on {{ job.processing_started|format_datetime_short }} diff --git a/app/templates/views/notifications/notification.html b/app/templates/views/notifications/notification.html index 5d17f2f2a..e077877fa 100644 --- a/app/templates/views/notifications/notification.html +++ b/app/templates/views/notifications/notification.html @@ -14,6 +14,11 @@ {{ message_count_label(1, template.template_type, suffix='') | capitalize }} +

+ Sent {% if created_by %}by {{ created_by.name }} {% endif %} + on {{ created_at|format_datetime_short }} +

+ {{ template|string }} {{ ajax_block(partials, updates_url, 'status', finished=finished) }}