mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Removed unused get template call
This commit is contained in:
@@ -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']
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user