Merge pull request #1201 from alphagov/back-to-templates-link

Add a back to template link on job page
This commit is contained in:
Chris Hill-Scott
2017-03-22 14:49:25 +00:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -19,12 +19,12 @@
{% else %}
{% if notifications %}
<div class="dashboard-table">
<div class="dashboard-table bottom-gutter-3-2">
{% endif %}
{% if not help %}
{% if percentage_complete < 100 %}
<p class="bottom-gutter-1-2 hint">
<p class="bottom-gutter hint">
Report is {{ "{:.0f}%".format(percentage_complete) }} complete…
</p>
{% elif notifications %}

View File

@@ -1,6 +1,7 @@
{% extends "withnav_template.html" %}
{% from "components/banner.html" import banner %}
{% from "components/ajax-block.html" import ajax_block %}
{% from "components/page-footer.html" import page_footer %}
{% block service_page_title %}
{{ uploaded_file_name }}
@@ -18,4 +19,11 @@
{{ ajax_block(partials, updates_url, 'counts', finished=finished) }}
{{ ajax_block(partials, updates_url, 'notifications', finished=finished) }}
{% if not help %}
{{ 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)
) }}
{% endif %}
{% endblock %}