diff --git a/app/templates/partials/jobs/status.html b/app/templates/partials/jobs/status.html index 694bb117c..c66bc6427 100644 --- a/app/templates/partials/jobs/status.html +++ b/app/templates/partials/jobs/status.html @@ -1,5 +1,13 @@

- Uploaded by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }} + {% if job.scheduled_for %} + {% if job.processing_started %} + Sent by {{ job.created_by.name }} on {{ job.processing_started|format_datetime_short }} + {% else %} + Uploaded by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }} + {% endif %} + {% else %} + Sent by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }} + {% endif %}

diff --git a/tests/app/main/views/test_jobs.py b/tests/app/main/views/test_jobs.py index 98184fa31..0e66c584c 100644 --- a/tests/app/main/views/test_jobs.py +++ b/tests/app/main/views/test_jobs.py @@ -267,7 +267,7 @@ def test_should_show_updates_for_one_job_as_json( assert 'Status' in content['notifications'] assert 'Delivered' in content['notifications'] assert '12:01am' in content['notifications'] - assert 'Uploaded by Test User on 1 January at midnight' in content['status'] + assert 'Sent by Test User on 1 January at midnight' in content['status'] @pytest.mark.parametrize(