diff --git a/application/templates/components/hero/macro.jinja b/application/templates/components/hero/macro.jinja index 4cdafe46..522c00b9 100644 --- a/application/templates/components/hero/macro.jinja +++ b/application/templates/components/hero/macro.jinja @@ -1,6 +1,5 @@ {% from "govuk_frontend_jinja/components/button/macro.html" import govukButton %} {% from "govuk_frontend_jinja/components/phase-banner/macro.html" import govukPhaseBanner %} -{% from "govuk_frontend_jinja/components/breadcrumbs/macro.html" import govukBreadcrumbs %} {% macro appHero(params={}) %}
diff --git a/application/templates/dataset-backlog.html b/application/templates/dataset-backlog.html index 8a49612b..3289abf7 100644 --- a/application/templates/dataset-backlog.html +++ b/application/templates/dataset-backlog.html @@ -6,25 +6,12 @@ {% endblock head %} -{%- block beforeContent -%} - {{ super() }} - - {{- govukBreadcrumbs({ - "items": [ - { - "text": "Planning Data", - "href": "/" - }, - { - "text": "Datasets", - "href": "/dataset/" - }, - { - "text": name - } - ] - }) -}} -{%- endblock -%} +{%- from "components/back-button/macro.jinja" import dlBackButton %} +{% block breadcrumbs%} + {{ dlBackButton({ + "parentHref": '/' + })}} +{% endblock %} {% block pageTitle %}{{ name }} dataset | Planning Data{% endblock %} diff --git a/application/templates/fact.html b/application/templates/fact.html index 662bc3bb..e6df2e18 100644 --- a/application/templates/fact.html +++ b/application/templates/fact.html @@ -10,23 +10,12 @@ {%- block pageTitle %}{{ row_name }} | {{ pipeline_name|capitalize }} | Planning Data{% endblock -%} -{%- block breadcrumbs -%} - {{- govukBreadcrumbs({ - "items": [ - { - "text": "Planning Data", - "href": "/" - }, - { - "text": "Fact", - "href": "/fact" - }, - { - "text": fact["fact"] - } - ] - }) -}} -{%- endblock -%} +{%- from "components/back-button/macro.jinja" import dlBackButton %} +{% block breadcrumbs%} + {{ dlBackButton({ + "parentHref": '/' + })}} +{% endblock %} {%- block content %}
diff --git a/application/templates/layouts/base.html b/application/templates/layouts/base.html index 7d657e02..256f1406 100644 --- a/application/templates/layouts/base.html +++ b/application/templates/layouts/base.html @@ -1,6 +1,5 @@ {% extends "govuk_frontend_jinja/template.html" %} {% from "govuk_frontend_jinja/components/phase-banner/macro.html" import govukPhaseBanner %} -{% from "govuk_frontend_jinja/components/breadcrumbs/macro.html" import govukBreadcrumbs %} {%- block pageTitle %}Planning data you can find, use and trust{% endblock -%} diff --git a/application/templates/layouts/layout--guidance.html b/application/templates/layouts/layout--guidance.html index 4bf88201..0ba02735 100644 --- a/application/templates/layouts/layout--guidance.html +++ b/application/templates/layouts/layout--guidance.html @@ -2,9 +2,12 @@ {% from "components/sub-navigation/macro.jinja" import appSubNavigation %} {% block pageTitle %}{{ pageData.pageTitle }}{% endblock %} -{%- block breadcrumbs -%} - {{- govukBreadcrumbs({ 'items': pageData.breadcrumbs }) -}} -{%- endblock -%} +{%- from "components/back-button/macro.jinja" import dlBackButton %} +{% block breadcrumbs%} + {{ dlBackButton({ + "parentHref": '/' + })}} +{% endblock %} {% block content %} diff --git a/application/templates/organisation_index.html b/application/templates/organisation_index.html index 0cf80b6b..08646486 100644 --- a/application/templates/organisation_index.html +++ b/application/templates/organisation_index.html @@ -7,21 +7,12 @@ {% endblock head %} -{%- block beforeContent -%} - {{ super() }} - - {{- govukBreadcrumbs({ - "items": [ - { - "text": "Planning Data", - "href": "/" - }, - { - "text": "Organisations" - } - ] - }) -}} -{%- endblock -%} +{%- from "components/back-button/macro.jinja" import dlBackButton %} +{% block breadcrumbs%} + {{ dlBackButton({ + "parentHref": '/' + })}} +{% endblock %} {% block pageTitle %}Organisations | Planning Data{% endblock %}