From f2bb64cc101b0802fe1b4f04c6bb3ce7395177aa Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sun, 21 Dec 2025 21:24:25 +0100 Subject: [PATCH] fix: remove nested Jinja comments in dropdowns.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nested {# ... #} comments inside the docstring were breaking the outer comment block, causing 'dropdown' is undefined error when rendering the components page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- app/templates/shared/macros/dropdowns.html | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/templates/shared/macros/dropdowns.html b/app/templates/shared/macros/dropdowns.html index 1b49d6a3..e3ad256f 100644 --- a/app/templates/shared/macros/dropdowns.html +++ b/app/templates/shared/macros/dropdowns.html @@ -4,20 +4,20 @@ Reusable dropdown menu components with Alpine.js integration. Usage: - {% from 'shared/macros/dropdowns.html' import dropdown, dropdown_menu, context_menu %} + from 'shared/macros/dropdowns.html' import dropdown, dropdown_menu, context_menu - {# Basic dropdown #} - {% call dropdown('Actions', 'isDropdownOpen') %} - {{ dropdown_item('Edit', 'edit()', icon='pencil') }} - {{ dropdown_item('Delete', 'delete()', icon='trash', variant='danger') }} - {% endcall %} + Basic dropdown: + call dropdown('Actions', 'isDropdownOpen') + dropdown_item('Edit', 'edit()', icon='pencil') + dropdown_item('Delete', 'delete()', icon='trash', variant='danger') + endcall - {# Context menu (3-dot icon) #} - {% call context_menu('itemMenu', 'isMenuOpen') %} - {{ dropdown_item('View', 'view()') }} - {{ dropdown_divider() }} - {{ dropdown_item('Delete', 'delete()', variant='danger') }} - {% endcall %} + Context menu (3-dot icon): + call context_menu('itemMenu', 'isMenuOpen') + dropdown_item('View', 'view()') + dropdown_divider() + dropdown_item('Delete', 'delete()', variant='danger') + endcall #}