Fix navigation around uploads and jobs

The uploads and jobs page should start showing in the _Uploads_ menu on
the left hand side.

If you’ve navigated to a job from the uploads page (ie you haven’t got
to that page because you’ve just sent the job) then you should see a
link back to the uploads page.
This commit is contained in:
Chris Hill-Scott
2020-03-03 14:27:13 +00:00
parent fdd17e30bf
commit 3df3db1609
4 changed files with 15 additions and 10 deletions

View File

@@ -90,10 +90,7 @@ def view_job(service_id, job_id):
status=request.args.get('status', ''),
),
partials=get_job_partials(job),
just_sent=bool(
request.args.get('just_sent') == 'yes'
and job.template_type == 'letter'
),
just_sent=request.args.get('just_sent') == 'yes',
just_sent_message=just_sent_message,
)