{% load sitetree %}
<ul class="dropdown-menu" role="menu">
    {% for item in sitetree_items %}
       <li role="presentation" class="{% if item.has_children %}dropdown-submenu{% endif %} {% if item.is_current or item.in_current_branch %}active{% endif %}">
            <a role="menuitem" href="{% sitetree_url for item %}" {% if item.hint %}title="{{ item.hint }}"{% endif %}>{{ item.title_resolved }}</a>
            {% if item.has_children %}
                {% sitetree_children of item for menu template "sitetree/menu_bootstrap3_dropdown.html" %}
            {% endif %}
        </li>
    {% endfor %}
</ul>
