Remove redundant code from notifications.html

This commit is contained in:
Ken Tsang
2018-03-01 13:26:01 +00:00
parent c6285ed68b
commit 42622d86e1

View File

@@ -35,17 +35,11 @@
Estimated delivery date: {{ estimated_letter_delivery_date|string|format_date_short }}
</p>
<p class="bottom-gutter">
{% if not error %}
<a href="{{ url_for('main.view_letter_notification_as_preview', service_id=current_service.id, notification_id=notification_id, filetype='pdf') }}" download>Download as a PDF</a>
{% endif %}
<a href="{{ url_for('main.view_letter_notification_as_preview', service_id=current_service.id, notification_id=notification_id, filetype='pdf') }}" download>Download as a PDF</a>
</p>
{% endif %}
{% if error %}
Error Creating PDF Preview
{% else %}
{{ template|string }}
{% endif %}
{{ template|string }}
{% if template.template_type != 'letter' %}
{{ ajax_block(partials, updates_url, 'status', finished=finished) }}