Merge pull request #1926 from alphagov/ken-remove-link-from-preview-precompiled

Remove link from preview precompiled view and dashboard
This commit is contained in:
kentsanggds
2018-03-08 15:28:47 +00:00
committed by GitHub
7 changed files with 101 additions and 20 deletions

View File

@@ -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>