{% load i18n %} {% spaceless %} {% with item_class=item_class|default:"nav-item" %} {% for child in children %} {% if child.is_leaf_node %}