Skip to content

Commit f99f41d

Browse files
authored
Merge pull request #166 from alphagov/GOVSI-611/figma-updated-errors
GOVSI-611: error page content updates to match the figma
2 parents 3888fc4 + 39838b2 commit f99f41d

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

src/components/common/errors/404.njk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% extends "common/layout/base.njk" %}
2+
{% from "govuk/components/button/macro.njk" import govukButton %}
23
{% set pageTitleName = 'error.error404.title' | translate %}
34

45
{% block content %}
@@ -7,10 +8,14 @@
78
<h1 class="govuk-heading-l">{{'error.error404.header' | translate }}</h1>
89
<p class="govuk-body">{{'error.error404.content.paragraph1' | translate }}</p>
910
<p class="govuk-body">{{'error.error404.content.paragraph2' | translate }}</p>
11+
12+
{{ govukButton({
13+
"text": button_text|default('error.error404.content.backToYourAccountButtonText' | translate, true),
14+
"type": "Submit",
15+
"href": 'error.error404.content.backToYourAccountButtonLink' | translate
16+
}) }}
17+
1018
<p class="govuk-body">
11-
{{'error.error404.content.paragraph3Start' | translate }}
12-
<a href="{{'error.error404.content.yourAccountLink' | translate }}" class="govuk-link">{{'error.error404.content.yourAccountLinkText' | translate }}</a>
13-
{{'error.error404.content.paragraph3Middle' | translate }}
1419
<a href="{{'error.error404.content.govUKHomepageLink' | translate }}" class="govuk-link">{{'error.error404.content.govUKHomepageLinkText' | translate }}</a>
1520
</p>
1621
</div>

src/locales/en/translation.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,21 @@
7272
"content": {
7373
"paragraph1": "If you typed the web address, check it is correct.",
7474
"paragraph2": "If you pasted the web address, check you copied the entire address.",
75-
"paragraph3Start": "Go back to ",
76-
"yourAccountLink": "#",
77-
"yourAccountLinkText": "your account",
78-
"paragraph3Middle": " or to the ",
75+
"backToYourAccountButtonLink": "#",
76+
"backToYourAccountButtonText": "Go back to your account",
7977
"govUKHomepageLink": "https://www.gov.uk/",
80-
"govUKHomepageLinkText": "GOV.UK homepage."
78+
"govUKHomepageLinkText": "Go to the GOV.UK homepage"
8179
}
8280
},
8381
"error500": {
84-
"title": "Sorry, there is a problem with the service",
85-
"header": "Sorry, there is a problem with the service",
82+
"title": "There's a problem with this service",
83+
"header": "Sorry, there's a problem with this service",
8684
"content": {
8785
"paragraph1": "Try again later."
8886
}
8987
},
9088
"timeoutError": {
91-
"title": "You have been signed out",
89+
"title": "You've been signed out",
9290
"header": "You have been signed out",
9391
"content": {
9492
"paragraph1": "You’ve been signed out because you did not use your account for 30 minutes or more.",

0 commit comments

Comments
 (0)