From f588b0bb1cdc592259a7bae63d1715f09195cd50 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Wed, 9 Oct 2024 20:47:28 +0100 Subject: [PATCH] Simplify header template --- packages/components/header/template.njk | 178 ++++++++---------------- 1 file changed, 56 insertions(+), 122 deletions(-) diff --git a/packages/components/header/template.njk b/packages/components/header/template.njk index 5419e7627..9839bccbf 100644 --- a/packages/components/header/template.njk +++ b/packages/components/header/template.njk @@ -16,9 +16,9 @@ {%- if params.organisation and params.organisation.name %} nhsuk-header--organisation{% endif %} {%- if params.classes %} {{ params.classes }}{% endif %}" role="banner" {{- nhsukAttributes(params.attributes) }}> - +
- - - - {%- if showNav == "false" and showSearch == "false"%} - - {%- if params.transactionalService%} - - - {%- endif %} - -
{# close nhsuk-header__container #} - - {% endif -%} - - {% if showNav == "true" and params.primaryLinks and showSearch == "true" %} - -
- -
- - {# close nhsuk-header__container #} -
- +{%- if showNav == "false" and showSearch == "false"%} + {%- if params.transactionalService%} + - - - {% endif -%} - - {% if showSearch == "true" and showNav == "false" %} - -
- {# close nhsuk-header__container #} - -
- +
- - {% endif -%} - +{% endif -%} +
{# close nhsuk-header__container #} + +{% if showNav == "true" and params.primaryLinks %} +
+ +
+{% endif -%}