2016-06-26 22:01:42 +00:00
|
|
|
{% load sitetree %}
|
2017-12-10 07:25:51 +00:00
|
|
|
<nav class="navbar navbar-lca" role="navigation">
|
2017-04-10 11:10:25 +00:00
|
|
|
<div class="container-fluid">
|
2016-06-30 07:25:50 +00:00
|
|
|
{% for item in sitetree_items %}
|
2017-04-10 11:10:25 +00:00
|
|
|
{% if forloop.counter == 1 %}
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
2017-12-10 07:25:51 +00:00
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand logo" href="{% sitetree_url for item %}">
|
|
|
|
<img src="https://linux.conf.au/media/img/LCA18_nodate.svg" height="80" alt="linux.conf.au 2018" />
|
|
|
|
</a>
|
2017-04-10 11:10:25 +00:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
{% if forloop.counter == 2 %}
|
2017-12-10 07:25:51 +00:00
|
|
|
<div id="navbar" class="navbar-collapse collapse">
|
2017-04-10 11:10:25 +00:00
|
|
|
<ul class="nav navbar-nav">
|
2016-06-30 07:25:50 +00:00
|
|
|
{% endif %}
|
2017-12-10 07:25:51 +00:00
|
|
|
<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 %}>
|
|
|
|
<span>
|
|
|
|
{{ item.title_resolved }} {% if item.has_children %}<b class="caret"></b>{% endif %}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{% if item.has_children %}
|
|
|
|
{% sitetree_children of item for menu template "sitetree/menu_bootstrap3_dropdown.html" %}
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
2017-04-10 11:10:25 +00:00
|
|
|
{% endif %}
|
2016-06-30 07:25:50 +00:00
|
|
|
{% endfor %}
|
2017-12-10 07:25:51 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2017-04-10 11:10:25 +00:00
|
|
|
</div>
|
2016-06-26 22:01:42 +00:00
|
|
|
</nav>
|