{% load i18n %} {% comment %} Generic in-card "rail" navigation for sectioned pages (``/settings/``, ``/administration/``, profile pages, ...). Mirrors the GitHub-style left-rail / right-pane layout: each top-level entry renders as a Tabler "subheader" group label, with its children as ``list-group-item-action`` rows beneath. Top-level entries without children render as standalone list items. Usage: ```django {% include "conjunto/includes/rail.html" with items=menus.administration %} ``` Items are duck-typed against ``IMenuItem``: ``visible``, ``url``, ``has_children``, ``children``, ``selected``, ``disabled``, ``boost``, ``get_title``, ``get_icon``, ``badge``, ``badge_class``. A top-level item is treated as a "group" when it has children; the group label is always rendered as a non-clickable span (the group's children are the actionable items — making the label itself a link duplicates a child's destination and adds cognitive load). {% endcomment %} {% for item in items %} {% if item.visible %} {% if item.has_children %}