mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-01 06:40:54 -05:00
Merge pull request #654 from alphagov/fix-500-notification-no-updated-at
Fix 500 on job page when notifications are sending
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
align='right',
|
||||
status='error' if item.status == 'Failed' else 'default'
|
||||
) %}
|
||||
{{ item.status|format_notification_status }} at {{ item.updated_at|format_time }}
|
||||
{{ item.status|format_notification_status }} at {{ (item.updated_at or item.created_at)|format_time }}
|
||||
{% endcall %}
|
||||
{% endcall %}
|
||||
{% else %}
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
{{ text_field(item.status|format_notification_status) }}
|
||||
|
||||
{% call field(align='right') %}
|
||||
{{ item.updated_at|format_datetime_short }}
|
||||
{{ (item.updated_at or item.created_at)|format_datetime_short }}
|
||||
{% endcall %}
|
||||
{% endcall %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user