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 %}