From cba7769f4fdd37650e9543e18dc4abc1226689f7 Mon Sep 17 00:00:00 2001 From: thomasridd Date: Tue, 20 Feb 2024 09:40:40 +0000 Subject: [PATCH] delete breadcrumb --- server/views/partials/breadCrumb.njk | 32 ------------------------- server/views/partials/breadcrumb.njk | 36 ---------------------------- 2 files changed, 68 deletions(-) delete mode 100644 server/views/partials/breadCrumb.njk delete mode 100644 server/views/partials/breadcrumb.njk diff --git a/server/views/partials/breadCrumb.njk b/server/views/partials/breadCrumb.njk deleted file mode 100644 index affaa72d..00000000 --- a/server/views/partials/breadCrumb.njk +++ /dev/null @@ -1,32 +0,0 @@ -{% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %} - -{% macro breadCrumb(pageTitle, breadCrumbList) %} - - {% set rows = [ { - text: "Home", - href: '/' - } ] - %} - - {% for item in breadCrumbList %} - {% set rows = (rows.push( - { - text: item.title, - href: item.href - } - ), rows) %} - {% endfor %} - - {% set completedRows = (rows.push( - { - text: pageTitle - } - ), rows) %} - -{{ govukBreadcrumbs({ - collapseOnMobile: true, - items: completedRows, - classes: "govuk-!-display-none-print" -}) }} - -{% endmacro %} diff --git a/server/views/partials/breadcrumb.njk b/server/views/partials/breadcrumb.njk deleted file mode 100644 index ae67b2b3..00000000 --- a/server/views/partials/breadcrumb.njk +++ /dev/null @@ -1,36 +0,0 @@ -{% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %} - -{% macro breadcrumb(pageTitle, breadcrumbList, displayCurrentPageTitle="true") %} - - {% set rows = [ { - text: "Home", - href: '/' - } ] - %} - - {% for item in breadcrumbList %} - {% set rows = (rows.push( - { - text: item.title, - href: item.href - } - ), rows) %} - {% endfor %} - - {% if displayCurrentPageTitle %} - {% set completedRows = (rows.push( - { - text: pageTitle - } - ), rows) %} - {% else %} - {% set completedRows = rows %} - {% endif %} - -{{ govukBreadcrumbs({ - collapseOnMobile: true, - items: completedRows, - classes: "govuk-!-display-none-print" -}) }} - -{% endmacro %}