Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% load sitetree %}
- <nav class="navbar navbar-default">
- <div class="container-fluid">
- <!-- Brand and toggle get grouped for better mobile display -->
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- </div>
- <!-- Collect the nav links, forms, and other content for toggling -->
- <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
- <ul class="nav navbar-nav">
- {% 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="{% if item.has_children %}#{% else %}{% sitetree_url for item %}{% endif %}" {% if item.has_children %}class="dropdown-toggle" data-toggle="dropdown"{% endif %}>
- {{ item.title_resolved }}
- {% if item.has_children %}<b class="caret"></b>{% endif %}
- </a>
- {% if item.has_children %}
- {% sitetree_children of item for menu template "sitetree/menu_bootstrap3_dropdown.html" %}
- {% endif %}
- </li>
- {% endfor %}
- </ul>
- </div>
- </div>
- </nav>
Add Comment
Please, Sign In to add comment