mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 09:19:48 -04:00
Move back link outside of main where it was used in the page header
The page_header macro includes an optional back link. Since the page_header is always used inside `<main>`, where the back link should not be, this stops setting the back link in the page header and instead sets it in the new `backLink` block.
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
{% extends "withoutnav_template.html" %}
|
||||
|
||||
{% from "components/page-header.html" import page_header %}
|
||||
{% from "components/back-link/macro.njk" import govukBackLink %}
|
||||
|
||||
{% block per_page_title %}
|
||||
The GOV.UK Notify service is for people who work in the government
|
||||
{% endblock %}
|
||||
|
||||
{% block backLink %}
|
||||
{{ govukBackLink({ "href": url_for('.support') }) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<div class="govuk-grid-row">
|
||||
<div class="govuk-grid-column-two-thirds">
|
||||
|
||||
{{ page_header(
|
||||
'The GOV.UK Notify service is for people who work in the government',
|
||||
back_link=url_for('.support')
|
||||
) }}
|
||||
{{ page_header('The GOV.UK Notify service is for people who work in the government') }}
|
||||
|
||||
<p class="govuk-body">
|
||||
We cannot give advice to the public. We do not have access to information about you held by government departments.
|
||||
|
||||
Reference in New Issue
Block a user