mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-05 06:01:46 -04:00
Remove template link from preview for precompiled letters
This commit is contained in:
@@ -80,6 +80,7 @@ def view_notification(service_id, notification_id):
|
||||
estimated_letter_delivery_date=get_letter_timings(notification['created_at']).earliest_delivery,
|
||||
notification_id=notification['id'],
|
||||
can_receive_inbound=('inbound_sms' in current_service['permissions']),
|
||||
is_precompiled_letter=notification['template']['is_precompiled_letter']
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -15,12 +15,16 @@
|
||||
</h1>
|
||||
|
||||
<p>
|
||||
{% if help %}
|
||||
{{ template.name }}
|
||||
{% if is_precompiled_letter %}
|
||||
Sent
|
||||
{% else %}
|
||||
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=template.id) }}">{{ template.name }}</a>
|
||||
{% if help %}
|
||||
{{ template.name }}
|
||||
{% else %}
|
||||
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=template.id) }}">{{ template.name }}</a>
|
||||
{% endif %}
|
||||
sent
|
||||
{% endif %}
|
||||
sent
|
||||
{% if job and job.original_file_name != 'Report' %}
|
||||
from
|
||||
<a href="{{ url_for('.view_job', service_id=current_service.id, job_id=job.id) }}">{{ job.original_file_name }}</a>
|
||||
|
||||
Reference in New Issue
Block a user