You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
828 B

{% load sitetree %}
{% spaceless %}
{% autoescape off %}
<ul class="menu">
{% for item in sitetree_items %}
<li class="dropdown {% if item.is_current or item.in_current_branch %}active{% endif %}"
style="{% if item.title == "HIDDEN" %}display:none{% endif %}"
>
<a href="{% sitetree_url for item %}" >
{{ item.title_resolved }}
</a>
<div class="submenu">
{% if item.is_current or item.in_current_branch %}
{% sitetree_children of item for menu template "submenu.html" %}
{% endif %}
</div>
</li>
{% endfor %}
<div class="submenu-newline">
</div>
<script>
$( ".submenu" ).prependTo( ".submenu-newline" ); {# api.jquery.com/prependTo #}
</script>
</ul>
{% endautoescape %}
{% endspaceless %}