{% load i18n %}
{% if item.visible %}
{% if item.separator_before %}
{% endif %}
{% comment %}
Mini mode shows only level-1 icons; a click on this anchor
follows its own href (or is inert if the parent has no URL).
No dropdown flyout is opened. title= is set unconditionally
so the icon-only mini view exposes the label as a native
browser tooltip; it is harmless in full mode.
{% 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 %}
Legacy flyout markup — kept for backward compatibility but
never displayed (CSS hides .cj-sidebar-flyout unconditionally).
Mini mode no longer opens a submenu; the parent's href is
followed instead. Drop this block once no consumer relies on
it.
{% endcomment %}