Make letter preview show up on job page

It wasn’t being called with the URL, so the contents of the letter were
just showing up as plain text on the page.
This commit is contained in:
Chris Hill-Scott
2017-04-28 16:08:47 +01:00
parent d1cd74daa8
commit 91ccd6a7bd

View File

@@ -118,6 +118,13 @@ def view_job(service_id, job_id):
version=job['template_version']
)['data'],
current_service,
letter_preview_url=url_for(
'.view_template_version_preview',
service_id=service_id,
template_id=job['template'],
version=job['template_version'],
filetype='png',
),
),
status=request.args.get('status', ''),
updates_url=url_for(