added conditional to datetime in table

This commit is contained in:
Beverly Nguyen
2024-07-11 10:42:28 -07:00
parent 5042ba8d50
commit 96e94fd7d3
2 changed files with 3 additions and 1 deletions

View File

@@ -106,6 +106,7 @@ def service_dashboard(service_id):
),
"created_at": job["created_at"],
"processing_finished": job["processing_finished"],
"processing_started": job["processing_started"],
"notification_count": job["notification_count"],
"created_by": job["created_by"],
"notifications": aggregate_notifications_by_job.get(job["id"], []),
@@ -119,6 +120,7 @@ def service_dashboard(service_id):
partials=get_dashboard_partials(service_id),
job_and_notifications=job_and_notifications,
service_data_retention_days=service_data_retention_days,
job_response=job_response
)

View File

@@ -69,7 +69,7 @@
{{ notification.template.name }}
</td>
<td class="table-field time-sent">
{{ job.processing_finished|format_datetime_table }}
{{ (job.processing_finished or job.processing_started)|format_datetime_table }}
</td>
<td class="table-field sender">
{{ notification.created_by.name }}