Merge pull request #859 from alphagov/point-documentation-at-clients

Link to client documentation, not API documentation
This commit is contained in:
Chris Hill-Scott
2016-08-11 16:44:14 +01:00
committed by GitHub
6 changed files with 27 additions and 26 deletions

View File

@@ -193,13 +193,9 @@ def send_from_api(service_id, template_id):
service_api_client.get_service_template(service_id, template_id)['data'],
prefix=current_service['name']
)
personalisation = {
placeholder: "..." for placeholder in template.placeholders
}
return render_template(
'views/send-from-api.html',
template=template,
personalisation=json.dumps(personalisation, indent=4) if personalisation else None
template=template
)