{% load static i18n %} {#Generic menu renderer that can be used for rendering IMenuItem instances in various contexts.#} {#Usage: {% include "conjunto/tabler/includes/menu_renderer.html" with menu_items=menus.sidebar style="vertical" %}#} {#Parameters:#} {# - menu_items: List of IMenuItem instances to render#} {# - style: "vertical" (default), "horizontal", "dropdown"#} {# - show_icons: True (default), False - whether to show icons#} {# - item_class: Additional CSS classes for menu items#} {% if not style %}{% with style="vertical" %}{% endwith %}{% endif %} {% if show_icons == None %}{% with show_icons=True %}{% endwith %}{% endif %} {% if style == "vertical" %} {# Vertical menu (for sidebar) #}
{% elif style == "horizontal" %} {# Horizontal menu (for navbar) #} {% elif style == "dropdown" %} {# Dropdown menu items #} {% elif style == "list" %} {# Simple list (for notifications, etc.) #} {% endif %}