Link to the relevant job from notification page

If a notification has been sent from a job then that’s important context
to know about it. So we should surface that information on the page.

It also gives users an easy way of going back, if that’s the page
they’ve come from.
This commit is contained in:
Chris Hill-Scott
2017-06-19 14:43:01 +01:00
parent 929e2b841f
commit 1eb3a5aca0
2 changed files with 14 additions and 6 deletions

View File

@@ -15,7 +15,14 @@
</h1>
<p>
Sent {% if created_by %}by {{ created_by.name }} {% endif %}
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=template.id) }}">{{ template.name }}</a>
sent
{% if job %}
from
<a href="{{ url_for('.view_job', service_id=current_service.id, job_id=job.id) }}">{{ job.original_file_name }}</a>
{% elif created_by %}
by {{ created_by.name }}
{% endif %}
on {{ created_at|format_datetime_short }}
</p>
@@ -23,9 +30,4 @@
{{ ajax_block(partials, updates_url, 'status', finished=finished) }}
{{ page_footer(
secondary_link=url_for('.view_template', service_id=current_service.id, template_id=template.id),
secondary_link_text='Back to {}'.format(template.name)
) }}
{% endblock %}