Skip to content

Commit bbff0d6

Browse files
Fix page titles (#313)
This switches to using `{% set pageName %}` on all pages instead of `{% block pageTitle %}`, so that the service name is appended as `<title>{{ pageName %}} - NHS Record a vaccinations</title>`.
1 parent 3c3cd5a commit bbff0d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+178
-318
lines changed

app/views/accessibility-statement.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
Accessibility statement
5-
{% endblock %}
3+
{% set pageName = "Accessibility statement" %}
64

75
{% block content %}
86
<div class="nhsuk-grid-row">
97

108
<div class="nhsuk-grid-column-two-thirds">
119

12-
<h1>Accessibility statement</h1>
10+
<h1>{{ pageName }}</h1>
1311

1412
<p>This accessibility statement applies to the Record a vaccination service
1513
(<a href="https://www.ravs.england.nhs.uk">www.ravs.england.nhs.uk</a>)</p>
@@ -37,7 +35,7 @@ <h2>Give feedback and report accessibility problems</h2>
3735

3836

3937
<h2>Enforcement procedure</h2>
40-
<p>The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’).</p>
38+
<p>The Equality and Human Rights Commission (EHRC) is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 (the ‘accessibility regulations’).</p>
4139
<p>If you’re not happy with how we respond to your complaint, <a href="https://www.equalityadvisoryservice.com/">contact the Equality Advisory and Support Service (EASS)</a>.</p>
4240

4341
<h2>Technical information about this website’s accessibility</h2>

app/views/alerts/deactivated.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
Record a vaccination
5-
{% endblock %}
3+
{% set pageName = "Organisation name has been deactivated" %}
64

75
{% block header %}
86
{% include "includes/header-logged-out.html" %}
@@ -20,14 +18,14 @@
2018
<h1 class="nhsuk-panel__title" style="color:#212b32;">
2119
Organisation name has been deactivated
2220
</h1>
23-
21+
2422
<div class="nhsuk-panel__body" style="color:#212b32;">
2523
<p>This means you can no longer record vaccinations for this organisation.</p>
2624
<p>Until [date] you will still be able to access other parts of the Record a vaccination service.</p>
2725
<p>After [date] you will no longer have access to the service for ((Organisation name)).</p>
2826
</div>
2927

30-
28+
3129
<br><br>
3230

3331

@@ -41,7 +39,7 @@ <h1 class="nhsuk-panel__title" style="color:#212b32;">
4139

4240
</div>
4341

44-
42+
4543

4644

4745

app/views/alerts/high-alert.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
Record a vaccination
5-
{% endblock %}
3+
{% set pageName = "New section to record vaccinations" %}
64

75
{% block header %}
86
{% include "includes/header-logged-out.html" %}
@@ -20,16 +18,16 @@
2018
<h1 class="nhsuk-panel__title" style="color:#212b32;">
2119
New section to record vaccinations
2220
</h1>
23-
21+
2422
<div class="nhsuk-panel__body" style="color:#212b32;">
25-
We've updated the user journey for recording vaccinations. From now on, select 'Record vaccinations' from the header to start recording a vaccination.
23+
We've updated the user journey for recording vaccinations. From now on, select 'Record vaccinations' from the header to start recording a vaccination.
2624
</div>
2725

2826
<br>
2927

3028
<a href="/updates" style="color:#005eb8;">Example link</a>
31-
32-
29+
30+
3331
<br><br>
3432

3533

@@ -43,7 +41,7 @@ <h1 class="nhsuk-panel__title" style="color:#212b32;">
4341

4442
</div>
4543

46-
44+
4745

4846

4947

app/views/alerts/inset-2.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
{{ currentOrganisation.name }} – Home
5-
{% endblock %}
3+
{% set pageName = currentOrganisation.name + " - Home" %}
64

75
{% set currentSection = "home" %}
86

@@ -33,9 +31,9 @@ <h2 class="nhsuk-heading-m">Example heading</h2>
3331
<p>You have not yet recorded a vaccination.</p>
3432

3533
<p class="nhsuk-body"><a href="/vaccines/choose-site">Add vaccines</a></p>
36-
34+
3735
<p class="nhsuk-body"><a href="/user-admin/add-user">Add users</a></p>
38-
36+
3937
<p class="nhsuk-body"><a href="/find-a-patient">Find a patient</a></p>
4038

4139
<p>Find help and guidance at <a href="/reports">guide.ravs.england.nhs.uk</a></p>
@@ -85,7 +83,7 @@ <h2 class="nhsuk-heading-m">Total vaccinations</h2>
8583
</li>
8684

8785
</ul>
88-
86+
8987

9088
</div>
9189
</div>

app/views/alerts/new.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
Add batch
5-
{% endblock %}
3+
{% set pageName = "Add batch" %}
64

75
{% set currentSection = "vaccines" %}
86

@@ -17,7 +15,7 @@
1715
<div class="nhsuk-grid-row">
1816
<div class="nhsuk-grid-column-two-thirds">
1917

20-
<h1 class="nhsuk-heading-l">Add batch</h1>
18+
<h1 class="nhsuk-heading-l">{{ pageName }}</h1>
2119

2220
<form action="/vaccines/check" method="post" novalidate="true">
2321

@@ -59,7 +57,7 @@ <h1 class="nhsuk-heading-l">Add batch</h1>
5957

6058
{{ radios({
6159
"idPrefix": "pack-type",
62-
60+
6361
"name": "packType",
6462
"fieldset": {
6563
"legend": {
@@ -81,7 +79,7 @@ <h1 class="nhsuk-heading-l">Add batch</h1>
8179
]
8280
}) }}
8381

84-
82+
8583

8684
{{ button({
8785
"text": "Continue"

app/views/alerts/notification.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
Vaccines
5-
{% endblock %}
3+
{% set pageName = "Vaccines" %}
64

75
{% set currentSection = "vaccines" %}
86

@@ -19,7 +17,7 @@
1917

2018
{% include "_test.html" %}
2119

22-
<h1 class="nhsuk-heading-xl">Vaccines</h1>
20+
<h1 class="nhsuk-heading-xl">{{ pageName }}</h1>
2321

2422
<p class="nhsuk-body-l">Add and edit your vaccines for your organisation.</p>
2523

app/views/button-states.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
Button states
5-
{% endblock %}
3+
{% set pageName = "Button states" %}
64

75
{% block content %}
86
<div class="nhsuk-grid-row">
97
<div class="nhsuk-grid-column-two-thirds">
108

11-
<h1 class="nhsuk-heading-l">Button states</h1>
9+
<h1 class="nhsuk-heading-l">{{ pageName }}</h1>
1210

1311

1412
<h2 class="nhsuk-heading-m">Not yet pressed</h2>

app/views/contact-us.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
Contact us
5-
{% endblock %}
3+
{% set pageName = "Contact us" %}
4+
65

76
{% block content %}
87
<div class="nhsuk-grid-row">
98
<div class="nhsuk-grid-column-two-thirds">
109

11-
<h1 class="nhsuk-heading-xl">Contact us</h1>
10+
<h1 class="nhsuk-heading-xl">{{ pageName }}</h1>
1211

1312
<p>Telephone: <b>0121 611 0187</b> (select option 3)<br>
1413
Email: <a href="#">[email protected]</a></p>

app/views/email-invite.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
RAVS (Record a vaccination service) Get started
5-
{% endblock %}
3+
{% set pageName = "RAVS (Record a vaccination service) Get started" %}
64

75
{% block header %}
86
{% endblock %}

app/views/home/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% block pageTitle %}
4-
{{ currentOrganisation.name }} – Home
5-
{% endblock %}
3+
{% set pageName = currentOrganisation.name + " - Home" %}
64

75
{% set currentSection = "home" %}
86

0 commit comments

Comments
 (0)