From 90a7086ff58e40f80139aa67f8fac9c605d8782f Mon Sep 17 00:00:00 2001 From: Ans Date: Fri, 15 Mar 2024 15:55:50 -0400 Subject: [PATCH 1/2] Consolidate template breadcrumbs --- .../filing_instruction_guide/layout-fig.html | 11 +---------- .../jinja2/form-explainer/index.html | 11 ----------- .../regulations3k/regulations3k-side-nav.html | 11 +---------- cfgov/v1/jinja2/v1/layouts/_breadcrumbs.html | 10 ++++++++++ cfgov/v1/jinja2/v1/layouts/layout-1-3.html | 11 +---------- cfgov/v1/jinja2/v1/layouts/layout-2-1.html | 15 +-------------- cfgov/v1/jinja2/v1/layouts/layout-full.html | 11 +---------- 7 files changed, 15 insertions(+), 65 deletions(-) create mode 100644 cfgov/v1/jinja2/v1/layouts/_breadcrumbs.html diff --git a/cfgov/filing_instruction_guide/jinja2/filing_instruction_guide/layout-fig.html b/cfgov/filing_instruction_guide/jinja2/filing_instruction_guide/layout-fig.html index 973a7bbdf4e..39f82d3f5ee 100644 --- a/cfgov/filing_instruction_guide/jinja2/filing_instruction_guide/layout-fig.html +++ b/cfgov/filing_instruction_guide/jinja2/filing_instruction_guide/layout-fig.html @@ -15,10 +15,6 @@ {% endif %} {% set banner_modification = ' o-banner__dark' if version_status == 'Archived' else '' %} -{% if page and not breadcrumb_items %} -{% set breadcrumb_items = page.get_breadcrumbs(request) %} -{% endif %} - {% block banner_top %} {% if version_status %} {% import 'v1/includes/molecules/notification.html' as notification with context %} @@ -47,12 +43,7 @@
{% block hero -%}{%- endblock %} {% block pre_content scoped -%} - {% if breadcrumb_items | length > 0 %} -
- {%- import 'v1/includes/molecules/breadcrumbs.html' as breadcrumbs -%} - {{ breadcrumbs.render(breadcrumb_items) }} -
- {% endif %} + {% include 'v1/layouts/_breadcrumbs.html' %} {%- endblock %} {% block body_content scoped %}