Don't show sidebar in login view

Commit 22dcea19 introduced sidebar, which is not shown in
index view. Disable sidebar in the login view too.
multi-ogserver
Jose M. Guisado 2021-06-16 07:36:42 +00:00 committed by OpenGnSys Support Team
parent 3667db8662
commit f8e27fb149
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@
<div class="container-fluid flex-grow-1">
{% block container %}
<div class="row h-100">
{# The sidebar is not visible on index #}
{% if request.endpoint != "index" %}
{# The sidebar is not visible on index and login #}
{% if request.endpoint not in ["index", "login"] %}
<div id="sidebar" class="bg-light col-md-3 col-lg-2">
{% block sidebar %}{% endblock %}
</div>