-
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 #533 from alphagov/merge-errors
Use one base template for all HTTP response pages
- Loading branch information
Showing
12 changed files
with
41 additions
and
55 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
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
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 @@ | ||
<%= render partial: "five_hundred_error", locals: {status_code: 500} %> | ||
<%= render partial: "error_page", locals: {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 +1 @@ | ||
<%= render partial: "five_hundred_error", locals: {status_code: 501} %> | ||
<%= render partial: "error_page", locals: {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 +1 @@ | ||
<%= render partial: "five_hundred_error", locals: {status_code: 503} %> | ||
<%= render partial: "error_page", locals: {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 +1 @@ | ||
<%= render partial: "five_hundred_error", locals: {status_code: 504} %> | ||
<%= render partial: "error_page", locals: {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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<% title = "Sorry, we are experiencing technical difficulties (#{status_code} error)" unless local_assigns.include?(:title) %> | ||
<% content_for :title, "#{title} - GOV.UK" %> | ||
|
||
<% content_for :body_classes, "mainstream error" %> | ||
|
||
<% content_for :wrapper_content do %> | ||
<main id="content" role="main" class="group"> | ||
|
||
<header class="page-header group"> | ||
<div> | ||
<% if local_assigns.include?(:heading) %> | ||
<h1><%= heading %></h1> | ||
<% else %> | ||
<h1>Sorry, we are experiencing technical difficulties</h1> | ||
<% end %> | ||
</div> | ||
</header> | ||
<div class="article-container"> | ||
<article role="article" class="group"> | ||
<div class="inner"> | ||
<% if local_assigns.include?(:intro) %> | ||
<%= raw intro %> | ||
<% else %> | ||
<p>Please try again in a few moments.</p> | ||
<% end %> | ||
</div> | ||
</article> | ||
</div> | ||
</main> | ||
<% end %> | ||
|
||
<%= render partial: 'base' %> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.