-
Notifications
You must be signed in to change notification settings - Fork 7
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 #6099 from ministryofjustice/maintenance_mode_v2
Add maintenance mode (v2)
- Loading branch information
Showing
8 changed files
with
59 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class PagesController < ApplicationController | ||
def servicedown | ||
respond_to do |format| | ||
format.html do | ||
render :servicedown | ||
end | ||
format.json do | ||
render json: | ||
[{ error: "Service temporarily unavailable" }], | ||
status: :service_unavailable | ||
end | ||
format.js do | ||
render json: | ||
[{ error: "Service temporarily unavailable" }], | ||
status: :service_unavailable | ||
end | ||
format.all do | ||
render plain: "error: Service temporarily unavailable", | ||
status: :service_unavailable | ||
end | ||
end | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<%= page_template page_title: t(".title"), back_link: :none do %> | ||
<p class="govuk-body"> | ||
<%= t(".warning_html") %> | ||
</p> | ||
<% end %> |
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,13 @@ | ||
--- | ||
en: | ||
pages: | ||
servicedown: | ||
title: Sorry, the service is unavailable | ||
warning_html: | | ||
<p> | ||
You will be able to use the service again once we resolve the problem we’ve found. | ||
</p> | ||
<p> | ||
Use <a href="https://portal.legalservices.gov.uk/"><abbr title='Client and Cost Management System'>CCMS</abbr> (Client and Cost Management System)</a> | ||
if you need to make a new application. | ||
</p> |
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