{% macro nav_group(node, conn_name, prefix, current, current_schema) %} {% for leaf in node.leaves %} {% endfor %} {% for group_name, child in node.groups.items() %} {% set full_prefix = prefix ~ group_name ~ '.' %} {% set key = prefix ~ group_name %} {% set is_schema_level = not child.groups %} {% set is_current_schema = is_schema_level and key == current_schema %} {% set should_open = (not is_schema_level) or is_current_schema or (current and current.startswith(full_prefix)) %} {% endfor %} {% endmacro %}
{% block body %}{% endblock %}