UI - admin authentication and bootstrap update

This commit is contained in:
bunkerity
2021-07-09 14:17:50 +02:00
parent 6be082e0a9
commit 0d3f7d3925
9 changed files with 68 additions and 22 deletions

View File

@@ -2,6 +2,7 @@
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">bunkerized-nginx-ui</a>
{% if current_user.is_authenticated %}
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
@@ -18,6 +19,7 @@
</li>
</ul>
</div>
{% endif %}
</div>
</nav>
</header>