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.
|
|
|
{% load sitetree %}
|
|
|
|
{% spaceless %}
|
|
|
|
{% autoescape off %}
|
|
|
|
<ul class="menu">
|
|
|
|
{% for item in sitetree_items %}
|
|
|
|
<li class="{% if item.has_children %}dropdown{% endif %} {% if item.is_current or item.in_current_branch %}active{% 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 %}
|