This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
generated from communitiesuk/funding-service-design-TEMPLATE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into FPASF-394-find-home-page
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block pageTitle %}Sorry, the service is unavailable – {{ config['SERVICE_NAME'] }} – GOV.UK{% endblock pageTitle %} | ||
|
||
{% block backLinks %}{% endblock backLinks %} | ||
|
||
{# Override main width to two thirds #} | ||
{% set mainClasses = "govuk-main-wrapper-l govuk-!-width-two-thirds" %} | ||
|
||
{% block content %} | ||
<div class="govuk-width-container"> | ||
<h1 class="govuk-heading-l">Sorry, the service is unavailable</h1> | ||
|
||
{% if maintenance_ends_from %} | ||
<p class="govuk-body">You will be able to use the service from {{ maintenance_ends_from }}</p> | ||
{% else %} | ||
<p class="govuk-body">You will be able to use the service later.</p> | ||
{% endif %} | ||
|
||
<p class="govuk-body"> | ||
If you need help, contact us at <a class="govuk-link" href="mailto:{{ config['CONTACT_EMAIL'] }}">{{ config['CONTACT_EMAIL'] }}</a>. | ||
We aim to respond within 1 to 2 working days | ||
</p> | ||
<p class="govuk-body">Do not send your data return or any attachments to this email address.</p> | ||
</div> | ||
{% endblock content %} |
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 |
---|---|---|
|
@@ -11,6 +11,10 @@ class DefaultConfig(object): | |
FLASK_ROOT = str(Path(__file__).parent.parent.parent) | ||
FLASK_ENV = CommonConfig.FLASK_ENV | ||
FSD_LOG_LEVEL = logging.INFO | ||
|
||
MAINTENANCE_MODE: bool = os.getenv("MAINTENANCE_MODE", "false").lower() in {"1", "true", "yes", "y", "on"} | ||
MAINTENANCE_ENDS_FROM: str | None = os.getenv("MAINTENANCE_ENDS_FROM") | ||
|
||
CONTACT_EMAIL = os.environ.get("CONTACT_EMAIL", "[email protected]").lower() | ||
CONTACT_PHONE = os.environ.get("CONTACT_PHONE", "12345678910") | ||
DEPARTMENT_NAME = os.environ.get("DEPARTMENT_NAME", "Department for Levelling Up, Housing and Communities") | ||
|