Skip to content

Commit

Permalink
Remove person name from page titles
Browse files Browse the repository at this point in the history
This commit removes the person name from the pages that are setting the
page title directly.
  • Loading branch information
libuk committed Sep 13, 2023
1 parent 7df2e96 commit a75bb73
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/views/applications/people/confirm.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% extends "../../partials/layout.njk" %}

{% set pageTitle = "Confirm " + personName(person) + "'s details - " + applicationName %}
{% set pageTitle = "Confirm the person's details - " + applicationName %}
{% set mainClasses = "app-container govuk-body" %}

{% block beforeContent %}
Expand Down
2 changes: 1 addition & 1 deletion server/views/applications/people/selectOffence.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% extends "../../partials/layout.njk" %}

{% set pageTitle = "Select the index offence for " + personName(person) + " - " + applicationName %}
{% set pageTitle = "Select the index offence for the person - " + applicationName %}
{% set mainClasses = "app-container govuk-body" %}

{% block content %}
Expand Down
4 changes: 2 additions & 2 deletions server/views/temporary-accommodation/assessments/full.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

{% extends "../../partials/layout.njk" %}

{% set name = personName(assessment.application.person, 'Limited access offender') %}
{% set pageTitle = name + " referral - " + applicationName %}
{% set pageTitle = "The person's referral - " + applicationName %}
{% set mainClasses = "app-container govuk-body" %}

{% block beforeContent %}
Expand All @@ -17,6 +16,7 @@
{{ placeContextHeader(placeContext) }}
{% endblock %}

{% set name = personName(assessment.application.person, 'Limited access offender') %}
{% block content %}
{% include "../../_messages.njk" %}

Expand Down
4 changes: 2 additions & 2 deletions server/views/temporary-accommodation/assessments/summary.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

{% extends "../../partials/layout.njk" %}

{% set name = personName(assessment.application.person, 'Limited access offender') %}
{% set pageTitle = name + " referral summary - " + applicationName %}
{% set pageTitle = "The person's referral summary - " + applicationName %}
{% set mainClasses = "app-container govuk-body" %}

{% set name = personName(assessment.application.person, 'Limited access offender') %}
{% set breadCrumbTitle = name + " - Summary" %}

{% block beforeContent %}
Expand Down

0 comments on commit a75bb73

Please sign in to comment.