{% load admin_tools_menu_tags %} {% spaceless %} {% if not item.is_empty %} {% if index == 'submenu' %} {# submenu - generating sub-section #}