diff --git a/CHANGES.rst b/CHANGES.rst index 535d5295..52d2b6c8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,7 @@ +Changed +^^^^^^^ +- Display the menu bar on error pages. + [0.0.50] - 2024-04-09 --------------------- diff --git a/canaille/core/endpoints/auth.py b/canaille/core/endpoints/auth.py index 299a034c..555e6a17 100644 --- a/canaille/core/endpoints/auth.py +++ b/canaille/core/endpoints/auth.py @@ -27,6 +27,13 @@ from .forms import PasswordResetForm bp = Blueprint("auth", __name__) +@bp.context_processor +def global_processor(): + return { + "menu": False, + } + + @bp.route("/login", methods=("GET", "POST")) def login(): if current_user(): diff --git a/canaille/templates/base.html b/canaille/templates/base.html index 05193193..041b09ad 100644 --- a/canaille/templates/base.html +++ b/canaille/templates/base.html @@ -20,7 +20,7 @@
{% block menu %} - {% if user and menu %} + {% if menu %}