fix login and logout buttons decorations

This commit is contained in:
Evgenii Alekseev 2022-11-22 11:17:59 +02:00
parent 7883746e53
commit b71d1f6e3d

View File

@ -87,13 +87,17 @@
{% endif %} {% endif %}
{% if auth.enabled %} {% if auth.enabled %}
<ul class="nav">
{% if auth.username is none %} {% if auth.username is none %}
{{ auth.control|safe }} <li>{{ auth.control|safe }}</li>
{% else %} {% else %}
<li>
<form action="/api/v1/logout" method="post"> <form action="/api/v1/logout" method="post">
<button class="btn btn-link" style="text-decoration: none"><i class="bi bi-box-arrow-right"></i> logout ({{ auth.username }})</button> <button class="btn btn-link" style="text-decoration: none"><i class="bi bi-box-arrow-right"></i> logout ({{ auth.username }})</button>
</form> </form>
</li>
{% endif %} {% endif %}
</ul>
{% endif %} {% endif %}
</footer> </footer>
</div> </div>