Move back link above main content for straightforward cases

This moves the back link to be above the `<main>` tag by making use of
the new `backLink` block. This doesn't change the pages which are using
a back link as part of the `page_header` macro yet.
This commit is contained in:
Katie Smith
2021-07-30 14:42:54 +01:00
parent 0b9f1053b3
commit 1860b2b690
16 changed files with 64 additions and 33 deletions

View File

@@ -37,9 +37,11 @@
{% endif %}
{% endblock %}
{% block maincolumn_content %}
{% block backLink %}
{{ govukBackLink({ "href": back_link }) }}
{% endblock %}
{% block maincolumn_content %}
{% if broadcast_message.status == 'pending-approval' %}
{% if broadcast_message.created_by and broadcast_message.created_by == current_user