[CHANGE] Always minimize when not authenticated

We have no user settings here, so keep it minimized on public pages.
This commit is contained in:
Peter Pfeufer 2025-10-15 09:45:15 +02:00
parent 29c6fa292a
commit bce90344f8
No known key found for this signature in database

View File

@ -3,7 +3,7 @@
{% load menu_menu_items %}
<div class="col-auto px-0">
<div class="collapse collapse-horizontal {% if not request.session.MINIMIZE_SIDEBAR %}show{% endif %}" tabindex="-1" id="sidebar">
<div class="collapse collapse-horizontal {% if not request.session.MINIMIZE_SIDEBAR and user.is_authenticated %}show{% endif %}" tabindex="-1" id="sidebar">
<div>
<div class="nav-padding navbar-dark text-bg-dark px-0 d-flex flex-column overflow-hidden vh-100 {% if not user.is_authenticated %}position-relative{% endif %}">
{% if user.is_authenticated %}