digitalglarus: submenu for digitalglarus

This commit is contained in:
rascencio 2015-10-04 16:57:50 -06:00
parent a4c3c341a3
commit 8a90caf7da

View file

@ -16,16 +16,7 @@
<!-- Collect the nav links, forms, and other content for toggling --> <!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
{% for child in children %} {% show_sub_menu 1 0 %}
<li class="child{% if child.selected %} selected{% endif %}{% if child.ancestor %} ancestor{% endif %}{% if child.sibling %} sibling{% endif %}{% if child.descendant %} descendant{% endif %}">
<a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}</a>
{% if child.children %}
<ul>
{% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
</ul>
{% endif %}
</li>
{% endfor %}
<li> <li>
<a href="{% url 'digitalglarus:blog' %}">Blog</a> <a href="{% url 'digitalglarus:blog' %}">Blog</a>
</li> </li>