Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #114 from communitiesuk/bau/fix-email-from-config
Browse files Browse the repository at this point in the history
Fix contact email from config in templates
  • Loading branch information
samuelhwilliams authored Jun 4, 2024
2 parents cc8f7ae + 635e06c commit 7aedad7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<h2 class="govuk-heading-l">Get help</h2>
<p class="govuk-body">If you are experiencing difficulties with this service or have any questions, you can email us.</p>
<h3 class="govuk-heading-m">Email</h3>
<p class="govuk-body"><a class="govuk-link" href="mailto:[email protected]">[email protected]</a></p>
<p class="govuk-body"><a class="govuk-link" href="mailto:{{ config.CONTACT_EMAIL }}">{{ config.CONTACT_EMAIL }}</a></p>
<p class="govuk-body">Monday to Friday: 9am to 5pm (except public holidays).</p>
<h2 class="govuk-visually-hidden">Support links</h2>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/main/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<h1 class="govuk-heading-xl">Get help</h1>
<p class="govuk-body">If you are experiencing difficulties with this service or have any questions, you can email us.</p>
<h2 class="govuk-heading-l govuk-!-margin-top-4">Email</h2>
<p class="govuk-body"><a class="govuk-link" href="mailto:[email protected]">[email protected]</a>.</p>
<p class="govuk-body"><a class="govuk-link" href="mailto:{{ config.CONTACT_EMAIL }}">{{ config.CONTACT_EMAIL }}</a></p>
<p class="govuk-body">Monday to Friday: 9am to 5pm (except public holidays).</p>
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion app/templates/main/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1 class="govuk-heading-xl">Find monitoring data</h1>
}) }}

<h2 class="govuk-heading-l govuk-!-margin-top-4">Get help</h2>
<p class="govuk-body">If you are having difficulties logging in, email the FSD support team at <a class="govuk-link" href="mailto:[email protected]">[email protected]</a></p>
<p class="govuk-body">If you are having difficulties logging in, email the FSD support team at <a class="govuk-link" href="mailto:{{ config.CONTACT_EMAIL }}">{{ config.CONTACT_EMAIL }}</a></p>
</div>
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion config/envs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DefaultConfig(object):
FLASK_ROOT = str(Path(__file__).parent.parent.parent)
FLASK_ENV = CommonConfig.FLASK_ENV
FSD_LOG_LEVEL = logging.INFO
CONTACT_EMAIL = os.environ.get("CONTACT_EMAIL", "FSD.Support@levellingup.gov.uk")
CONTACT_EMAIL = os.environ.get("CONTACT_EMAIL", "fsd.support@levellingup.gov.uk").lower()
CONTACT_PHONE = os.environ.get("CONTACT_PHONE", "12345678910")
DEPARTMENT_NAME = os.environ.get("DEPARTMENT_NAME", "Department for Levelling Up, Housing and Communities")
DEPARTMENT_URL = os.environ.get(
Expand Down

0 comments on commit 7aedad7

Please sign in to comment.