submenu.html 684 Bytes
Newer Older
1
2
<ul>
    {% for item in submenu %}
3
      {% if not item.authenticated or request.user.is_authenticated %}
4
5
        {% url item.name as path %}
        <li {% if request.path == path %}class="nav-selected nav-path-selected"{% endif %}>
6
            <a href="{% if path %}{{ path }}{% else %}{{ item.url }}{% endif %}"
7
8
9
10
11
12
13
14
               target="_self"
               {% if request.path == path %}class="nav-selected nav-path-selected"{% endif %}>
                {{ item.title }}
            </a>
            {% if 'submenu' in item %}
                {% include 'menu/submenu.html' with submenu=item.submenu %}
            {% endif %}
        </li>
15
      {% endif %}
16
17
    {% endfor %}
</ul>