Merge pull request #1301 from alphagov/fix-weird-meta-on-activity-page

Don’t link to one-off reports from activity
This commit is contained in:
Chris Hill-Scott
2017-06-05 11:15:21 +01:00
committed by GitHub

View File

@@ -21,7 +21,10 @@
{{ item.to }}
</p>
<p class="hint">
{% if item.job %}
{% if item.job and item.job.original_file_name == 'Report' %}
<a href="{{ url_for('.view_template_version', service_id=current_service.id, template_id=item.template.id, version=item.template_version) }}">{{ item.template.name }}</a>
sent to one recipient
{% elif item.job %}
From <a href="{{ url_for(".view_job", service_id=current_service.id, job_id=item.job.id) }}">{{ item.job.original_file_name }}</a>
{% else %}
<a href="{{ url_for('.view_template_version', service_id=current_service.id, template_id=item.template.id, version=item.template_version) }}">{{ item.template.name }}</a>