{% spaceless %} {% for ance in ancestors %} {% if not forloop.last or extra_ance %}
  • {{ ance.get_menu_title|safe }}
  • {% else %}
  • {{ ance.get_menu_title|safe }}
  • {% endif %} {% endfor %} {% if extra_ance %}
  • {{ extra_ance }}
  • {% endif %} {% endspaceless %}