From 154242de28f62e0b626d5e0d2f8f8d3c3488153b Mon Sep 17 00:00:00 2001 From: Nayab Gauhar <93754299+Nayab-Gauhar@users.noreply.github.com> Date: Fri, 31 Oct 2025 18:47:20 +0530 Subject: [PATCH] Refactor tiered list macro to extract duplicated code blocks Extract duplicated code blocks into private helper macros to improve maintainability. Created two private helper macros: - _vf_tiered_list_item_separator(): Renders the HR separator between list items - _vf_tiered_list_item(): Renders list item content with parameterized column classes This eliminates code duplication while maintaining the exact same functionality. Fixes #5530 --- templates/_macros/vf_tiered-list.jinja | 68 ++++++++++---------------- 1 file changed, 27 insertions(+), 41 deletions(-) diff --git a/templates/_macros/vf_tiered-list.jinja b/templates/_macros/vf_tiered-list.jinja index 869aebe3c..82dadd780 100644 --- a/templates/_macros/vf_tiered-list.jinja +++ b/templates/_macros/vf_tiered-list.jinja @@ -9,6 +9,24 @@ # list_item_title_[1-25]: title element of each child list item # list_item_description_[1-25]: description element of each child list item # cta: CTA block element + +{#- Private helper macro for rendering list item separator -#} +{% macro _vf_tiered_list_item_separator() -%} +
{{ cta_content }} @@ -118,4 +104,4 @@