diff --git a/views/dashboard.njk b/views/dashboard.njk index ed5f605b..1d4b7566 100644 --- a/views/dashboard.njk +++ b/views/dashboard.njk @@ -3,7 +3,6 @@ {% block title %}Dashboard{% endblock %} {% set createKeyPath = ["/dashboard/new"] | join %} {% block content %} - {% include "back-button.njk" %} Commodity Code Identification Tool Hub

Your account

diff --git a/views/delete.njk b/views/delete.njk index e2babd25..b5071522 100644 --- a/views/delete.njk +++ b/views/delete.njk @@ -2,7 +2,6 @@ {% from "govuk/components/warning-text/macro.njk" import govukWarningText %} {% block title %}Dashboard{% endblock %} {% block content %} - {% include "back-button.njk" %}

Delete an API Key

{{ govukWarningText({ "text": "Your API Key will be deleted with immediate effect and cannot be reactivated once deleted.", diff --git a/views/keySuccessPage.njk b/views/keySuccessPage.njk index 4e02c5a1..099ad532 100644 --- a/views/keySuccessPage.njk +++ b/views/keySuccessPage.njk @@ -8,7 +8,6 @@ {% block title %}Dashboard{% endblock %} {% block content %} - {% include "back-button.njk" %} {{ govukPanel({ titleText: "Your API Key has been created successfully" }) }} diff --git a/views/layout.njk b/views/layout.njk index 6e2e756e..12388ada 100644 --- a/views/layout.njk +++ b/views/layout.njk @@ -1,5 +1,6 @@ {% extends "govuk/template.njk" %} +{% from "govuk/components/back-link/macro.njk" import govukBackLink %} {% from "govuk/components/cookie-banner/macro.njk" import govukCookieBanner %} {% from "govuk/components/skip-link/macro.njk" import govukSkipLink %} {% from "govuk/components/header/macro.njk" import govukHeader %} @@ -34,6 +35,12 @@ }, html: phaseBannerHtml }) }} + {%- if backLinkHref %} + {{ govukBackLink({ + href: backLinkHref, + text: "Back" + }) }} + {% endif %} {% endblock %}

Your application has been rejected

diff --git a/views/revoke.njk b/views/revoke.njk index 0b2cdb19..113c4998 100644 --- a/views/revoke.njk +++ b/views/revoke.njk @@ -4,7 +4,6 @@ {% from "govuk/components/warning-text/macro.njk" import govukWarningText %} {% block title %}Dashboard{% endblock %} {% block content %} - {% include "back-button.njk" %}

Revoke an API Key

Check the below details regarding the API Key you have selected to revoke and confirm your choice. diff --git a/views/verification.njk b/views/verification.njk index a48c457c..9432873e 100644 --- a/views/verification.njk +++ b/views/verification.njk @@ -3,7 +3,6 @@ {% from "govuk/components/error-summary/macro.njk" import govukErrorSummary %} {% block content %} - {% include "back-button.njk" %} {% if errorList.length > 0 %} {{ govukErrorSummary({ titleText: "There is a problem",