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 %} |
{% load sitetree %} |
||||
|
{% spaceless %} |
||||
|
{% autoescape off %} |
||||
<ul class="menu"> |
<ul class="menu"> |
||||
{% for item in sitetree_items %} |
{% 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 %}" > |
<a href="{% sitetree_url for item %}" > |
||||
{{ item.title_resolved }} |
{{ item.title_resolved }} |
||||
</a> |
</a> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
<div class="submenu"> |
<div class="submenu"> |
||||
{% if item.is_current or item.in_current_branch %} |
{% if item.is_current or item.in_current_branch %} |
||||
{% sitetree_children of item for menu template "submenu.html" %} |
{% sitetree_children of item for menu template "submenu.html" %} |
||||
{% endif %} |
{% endif %} |
||||
</div> |
</div> |
||||
|
|
||||
|
|
||||
|
|
||||
</li> |
</li> |
||||
|
|
||||
{% endfor %} |
{% endfor %} |
||||
|
|
||||
<div class="submenu-newline"> |
<div class="submenu-newline"> |
||||
</div> |
</div> |
||||
|
|
||||
<script> |
<script> |
||||
$( ".submenu" ).prependTo( ".submenu-newline" ); {# api.jquery.com/prependTo #} |
$( ".submenu" ).prependTo( ".submenu-newline" ); {# api.jquery.com/prependTo #} |
||||
</script> |
</script> |
||||
|
|
||||
</ul> |
</ul> |
||||
|
{% endautoescape %} |
||||
|
{% endspaceless %} |
||||
|
Loading…
Reference in new issue