Removed unused get template call

This commit is contained in:
Chris Hill-Scott
2016-06-17 16:15:51 +01:00
parent a6ad829947
commit fb6cf3b3f4
2 changed files with 3 additions and 9 deletions

View File

@@ -92,10 +92,6 @@ def view_job(service_id, job_id):
job.get('notifications_failed', 0)
) == 0),
uploaded_file_name=job['original_file_name'],
first_email_template=[
template for template in service_api_client.get_service_templates(service_id)['data']
if template['template_type'] == 'email'
][0] if request.args.get('help') else None,
template=Template(
template,
prefix=current_service['name']

View File

@@ -32,11 +32,9 @@
Now try it with your own message
</p>
{% if request.args['help'] == '3' %}
{% if first_email_template %}
<a href='{{ url_for(".choose_template", service_id=current_service.id, template_type="email") }}'>
Write an email
</a>
{% endif %}
<a href='{{ url_for(".choose_template", service_id=current_service.id, template_type="email") }}'>
Write an email
</a>
<a href='{{ url_for(".choose_template", service_id=current_service.id, template_type="sms") }}'>
Write a text message
</a>