Add a more accurate missing notifications message

Notifications could be missing because:
- none have been created yet
- they’ve been deleted

This commit adds separate error messages for each case, rather than a
less helpful generic one.
This commit is contained in:
Chris Hill-Scott
2019-12-30 16:37:50 +00:00
parent d2f976c8ee
commit 9446b35e3b
3 changed files with 6 additions and 3 deletions

View File

@@ -480,6 +480,7 @@ def get_job_partials(job, template):
job=job,
template=template,
template_version=job['template_version'],
service_data_retention_days=service_data_retention_days,
),
'status': render_template(
'partials/jobs/status.html',