Skip to content

Commit 32df1fd

Browse files
Add statically compiled error pages (#258)
1 parent 9dc1a12 commit 32df1fd

8 files changed

Lines changed: 2645 additions & 5 deletions

File tree

app/views/_templates/layout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{%- from "_components/environment/macro.njk" import appEnvironment -%}
2626

2727
{% block head %}
28-
<!-- Add your custom CSS or Sass in /app/assets/sass/main.scss -->
28+
{# Add your custom CSS or Sass in /app/assets/sass/main.scss #}
2929
<link href="/assets/sass/main.css" rel="stylesheet">
3030
{% endblock %}
3131

@@ -72,9 +72,9 @@
7272
{% block bodyEnd %}
7373
{{ super() }}
7474
{% block scripts %}
75-
<!-- Custom JavaScript files can be added to this file -->
75+
{# Custom JavaScript files can be added to this file #}
7676
{% include "_includes/scripts.html" %}
77-
<!-- For adding page specific JavaScript -->
77+
{# For adding page specific JavaScript #}
7878
{% block pageScripts %}{% endblock %}
7979
{% endblock %}
8080
{% endblock %}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{# app/views/example-pages/static-template-generic.html #}
2+
3+
{% extends "layout.html" %}
4+
5+
{% set pageHeading = "Sorry, this service is unavailable" %}
6+
7+
{% block header %}
8+
{{ header({
9+
service: {
10+
text: serviceName
11+
}
12+
}) }}
13+
{% endblock %}
14+
15+
{% block content %}
16+
<div class="nhsuk-grid-row">
17+
<div class="nhsuk-grid-column-two-thirds">
18+
<h1>{{ pageHeading }}</h1>
19+
<p>Contact the hospital if you need to cancel an appointment.</p>
20+
</div>
21+
</div>
22+
{% endblock %}
23+
24+
{% block footer %}
25+
{{ footer() }}
26+
{% endblock footer %}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{# app/views/example-pages/static-template.html #}
2+
3+
{% extends "layout.html" %}
4+
5+
{% set pageHeading = "The service is unavailable" %}
6+
7+
{% block header %}
8+
{{ header({
9+
service: {
10+
text: serviceName
11+
}
12+
}) }}
13+
{% endblock %}
14+
15+
{% block content %}
16+
<div class="nhsuk-grid-row">
17+
<div class="nhsuk-grid-column-two-thirds">
18+
<h1>{{ pageHeading }}</h1>
19+
<p>Try again later.</p>
20+
<p>Email <a href="mailto:england.digitalscreening@nhs.net?subject=Manage%20breast%20screening%20query">england.digitalscreening@nhs.net</a> if you're still unable to access the required information.</p>
21+
</div>
22+
</div>
23+
{% endblock %}
24+
25+
{% block footer %}
26+
{{ footer() }}
27+
{% endblock footer %}

0 commit comments

Comments
 (0)