Files
@ 1886323d7431
Branch filter:
Location: symposion_app/pinaxcon/templates/sitetree_header.html - annotation
1886323d7431
1.1 KiB
text/html
Bootstrapification
Boot custom CSS, and put some base, standard css in its place.
Shame I did not start with fresh Bootstrap4, but oh well.
Some more templates could be made to make this less messy, which would
be good.
Boot custom CSS, and put some base, standard css in its place.
Shame I did not start with fresh Bootstrap4, but oh well.
Some more templates could be made to make this less messy, which would
be good.
4f106a0cd4cd e86a811f3863 e86a811f3863 02dc082958cf e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 02dc082958cf e86a811f3863 e86a811f3863 e86a811f3863 e86a811f3863 02dc082958cf e86a811f3863 e86a811f3863 e86a811f3863 4f106a0cd4cd | {% load sitetree %}
<nav class="navbar navbar-inverse navbar-default">
<div class="container-fluid">
{% for item in sitetree_items %}
{% 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">
<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" href="{% sitetree_url for item %}">{{ item.title_resolved }}</a>
</div>
{% else %}
{% if forloop.counter == 2 %}
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
{% endif %}
<li class="{% if item.is_current or item.in_current_branch %}active{% endif %}">
<a href="{% sitetree_url for item %}">{{ item.title_resolved }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</nav>
|