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