{% load i18n %}
{% if item.visible %}
{% if item.separator_before %}
{% endif %}
{% comment %}
Mini mode turns this anchor into a Bootstrap dropdown trigger.
JS sets/removes data-bs-toggle on mode switch; aria-expanded is
kept in sync by Bootstrap. The accessible label still resolves
via the visible title in full mode and via title= in mini —
set title= unconditionally so leaf items also get a native
browser tooltip when the sidebar is collapsed to icons. The
attribute is harmless in full mode (browsers only surface it
on hover).
{% endcomment %}
{# Boost real nav links; skip placeholders (url='#') and disabled. #}
{% if item.get_icon %}
{% endif %}
{{ item.get_title }}
{% if item.badge %}
{{ item.badge }}
{% endif %}
{% if item.inline_action %}
{% endif %}
{% if item.has_children %}
{% endif %}
{% comment %}
Mini-mode flyout: Bootstrap dropend menu, hidden in full mode via CSS.
The header inside the menu names the parent item (which has no URL of
its own when it has children), so the flyout context is obvious.
{% endcomment %}