Kateřina Čížková
5 years ago
5 changed files with 10619 additions and 45 deletions
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
File diff suppressed because it is too large
@ -1,34 +1,24 @@ |
|||
{% 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 %}" > |
|||
|
|||
<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 %} |
|||
|
Loading…
Reference in new issue