restpi/templates/navbar.html

28 wiersze
1.1 KiB
HTML

<nav class="navbar navbar-expand-lg navbar-light navbar-restpi">
<div class="container">
<a class="navbar-brand" href="/">RestPi</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/">Homepage</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/pins">Pins</a>
</li>
<li class="nav-item">
{% if user.is_authenticated %}
<a class="nav-link" href="/logout">Logout</a>
{% else %}
<a class="nav-link" href="/login">Login</a>
{% endif %}
</li>
</ul>
</div>
</div>
</nav>