-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2440 from alphagov/update-error-page-layout
Update error pages to use public layout template
- Loading branch information
Showing
25 changed files
with
131 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
//= require header-footer-only | ||
//= require govuk_publishing_components/dependencies | ||
|
||
//= require govuk_publishing_components/lib/cookie-functions | ||
//= require govuk_publishing_components/lib/header-navigation | ||
//= require govuk_publishing_components/lib/track-click | ||
|
||
//= require analytics | ||
|
||
//= require govuk_publishing_components/components/cookie-banner | ||
//= require govuk_publishing_components/components/layout-header | ||
//= require govuk_publishing_components/components/feedback | ||
|
||
//= require modules/global-bar | ||
//= require modules/cross-domain-tracking | ||
|
||
//= require global-bar-init | ||
//= require surveys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
// PRINT STYLESHEET COMPILER | ||
// OUTPUT | ||
// The following files and inline CSS will form the output of print.css | ||
@import "header-footer-only-print"; | ||
@import "helpers/core-print"; | ||
// is-print is used by govuk_frontend_toolkit to alter the printed font-stack | ||
$is-print: true; | ||
|
||
@import "govuk_publishing_components/govuk_frontend_support"; | ||
@import "govuk_publishing_components/component_support"; | ||
|
||
@import "govuk_publishing_components/components/print/button"; | ||
@import "govuk_publishing_components/components/print/feedback"; | ||
@import "govuk_publishing_components/components/print/layout-footer"; | ||
@import "govuk_publishing_components/components/print/layout-header"; | ||
@import "govuk_publishing_components/components/print/search"; | ||
@import "govuk_publishing_components/components/print/skip-link"; | ||
|
||
@import "helpers/print-base"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
$govuk-compatibility-govuktemplate: true; | ||
$govuk-use-legacy-palette: false; | ||
|
||
@import "govuk_publishing_components/govuk_frontend_support"; | ||
@import "govuk_publishing_components/component_support"; | ||
@import "header-footer-only"; | ||
|
||
// styles | ||
@import "helpers/organisations"; | ||
@import "helpers/wrapper"; | ||
@import "govuk_publishing_components/components/action-link"; | ||
@import "govuk_publishing_components/components/button"; | ||
@import "govuk_publishing_components/components/cookie-banner"; | ||
@import "govuk_publishing_components/components/feedback"; | ||
@import "govuk_publishing_components/components/input"; | ||
@import "govuk_publishing_components/components/layout-footer"; | ||
@import "govuk_publishing_components/components/layout-for-public"; | ||
@import "govuk_publishing_components/components/layout-header"; | ||
@import "govuk_publishing_components/components/search"; | ||
@import "govuk_publishing_components/components/skip-link"; | ||
|
||
@import "components/emergency-banner"; | ||
@import "components/global-bar"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
$govuk-compatibility-govuktemplate: true; | ||
$govuk-use-legacy-palette: false; | ||
|
||
// is-print is used by govuk_frontend_toolkit to alter the printed font-stack | ||
$is-print: true; | ||
|
||
@import "govuk_publishing_components/govuk_frontend_support"; | ||
@import "govuk_publishing_components/component_support"; | ||
@import "govuk_publishing_components/components/print/button"; | ||
@import "govuk_publishing_components/components/print/feedback"; | ||
|
||
@import "govuk_publishing_components/components/print/title"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
$govuk-compatibility-govuktemplate: true; | ||
$govuk-use-legacy-palette: false; | ||
|
||
@import "govuk_publishing_components/govuk_frontend_support"; | ||
@import "govuk_publishing_components/component_support"; | ||
@import "govuk_publishing_components/components/cookie-banner"; | ||
@import "govuk_publishing_components/components/button"; | ||
@import "govuk_publishing_components/components/feedback"; | ||
@import "govuk_publishing_components/components/action-link"; | ||
@import "govuk_publishing_components/components/title"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "Sorry, there is a problem", | ||
intro: '<p class="govuk-body">Go back and change the information you entered.</p>', | ||
status_code: 400 | ||
status_code: 400, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "You are not permitted to see this page", | ||
intro: '<p class="govuk-body">This page is restricted to certain users only.</p>', | ||
status_code: 401 | ||
status_code: 401, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "You are not permitted to see this page", | ||
intro: '<p class="govuk-body">This page is restricted to certain users only.</p>', | ||
status_code: 403 | ||
status_code: 403, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "You are not allowed to do this action", | ||
intro: '<p class="govuk-body">This page does not support the action you requested.</p>', | ||
status_code: 405 | ||
status_code: 405, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "Sorry, there is a problem", | ||
intro: '<p class="govuk-body">Go back and change the information you entered.</p>', | ||
status_code: 422 | ||
status_code: 422, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "Sorry, we're experiencing technical difficulties", | ||
heading: "Sorry, we’re experiencing technical difficulties", | ||
intro: '<p class="govuk-body">Please try again in a few moments.</p>', | ||
status_code: 500 | ||
status_code: 500, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "Sorry, we're experiencing technical difficulties", | ||
heading: "Sorry, we’re experiencing technical difficulties", | ||
intro: '<p class="govuk-body">Please try again in a few moments.</p>', | ||
status_code: 501 | ||
status_code: 501, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "Sorry, we're experiencing technical difficulties", | ||
heading: "Sorry, we’re experiencing technical difficulties", | ||
intro: '<p class="govuk-body">Please try again in a few moments.</p>', | ||
status_code: 502 | ||
status_code: 502, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "Sorry, we're experiencing technical difficulties", | ||
heading: "Sorry, we’re experiencing technical difficulties", | ||
intro: '<p class="govuk-body">Please try again in a few moments.</p>', | ||
status_code: 503 | ||
status_code: 503, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<%= render partial: "error_page", locals: { | ||
heading: "Sorry, we're experiencing technical difficulties", | ||
heading: "Sorry, we’re experiencing technical difficulties", | ||
intro: '<p class="govuk-body">Please try again in a few moments.</p>', | ||
status_code: 504 | ||
status_code: 504, | ||
} %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,40 @@ | ||
<% content_for :title, "#{heading} - GOV.UK" %> | ||
|
||
<% content_for :head do %> | ||
<%= stylesheet_link_tag "error-page", media: "screen" %> | ||
<%= stylesheet_link_tag "error-page-print", media: "print" %> | ||
<% end %> | ||
|
||
<% content_for :body_end do %> | ||
<%= javascript_include_tag "error-page" %> | ||
<% end %> | ||
|
||
<% content_for :body_classes, "mainstream error" %> | ||
<% if @emergency_banner then | ||
emergency_banner = render "components/emergency_banner", { | ||
campaign_class: @emergency_banner.campaign_class, | ||
heading: @emergency_banner.heading, | ||
link: @emergency_banner.link, | ||
link_text: @emergency_banner.link_text, | ||
short_description: @emergency_banner.short_description, | ||
} | ||
end | ||
user_satisfaction_survey = '<div id="user-satisfaction-survey-container"></div>' | ||
global_bar = render "components/global_bar" | ||
%> | ||
|
||
<% content_for :wrapper_content do %> | ||
<main id="content" role="main" class="govuk-main-wrapper govuk-main-wrapper--l"> | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<%= render "govuk_publishing_components/components/title", { | ||
title: heading, | ||
margin_top: 0, | ||
} %> | ||
<%= raw intro %> | ||
<p class="govuk-body">You can <a class="govuk-link" href="/coronavirus">find coronavirus information</a> on GOV.UK.</p> | ||
<br/> | ||
<pre>Status code: <%= status_code %></pre> | ||
</div> | ||
<%= render "govuk_publishing_components/components/layout_for_public", { | ||
emergency_banner: emergency_banner, | ||
full_width: false, | ||
global_bar: user_satisfaction_survey + global_bar, | ||
title: "#{heading} - GOV.UK", | ||
} do %> | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<%= render "govuk_publishing_components/components/title", { | ||
title: heading, | ||
margin_top: 0, | ||
} %> | ||
<%= raw intro %> | ||
<p class="govuk-body">You can <a class="govuk-link" href="/coronavirus">find coronavirus information</a> on GOV.UK.</p> | ||
<pre class="govuk-!-margin-top-8">Status code: <%= status_code %></pre> | ||
</div> | ||
</main> | ||
|
||
<%= render "govuk_publishing_components/components/feedback" %> | ||
|
||
<script type="text/javascript"> | ||
window.httpStatusCode = '<%= status_code %>'; | ||
</div> | ||
<script> | ||
window.httpStatusCode = '<%= status_code %>' | ||
</script> | ||
<% end %> | ||
|
||
<%= render partial: 'base', locals: { hide_account_navigation: true } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters