From 59122901ceabcdf3154cc6efe666e8faf21d7f04 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Wed, 19 Feb 2025 15:43:45 +0100 Subject: [PATCH] make login link part of global navigation this makes navigation uniform and the information architecture easier to reason about --- panel/src/panel/templates/base.html | 32 ++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/panel/src/panel/templates/base.html b/panel/src/panel/templates/base.html index a068007..7f8b2e1 100644 --- a/panel/src/panel/templates/base.html +++ b/panel/src/panel/templates/base.html @@ -16,17 +16,29 @@
- {% load custom_tags %} - {% if user.is_authenticated %} -

Welcome, {{ user.username }}! Logout

- {% else %} -

Login

- {% endif %} + + {% block navigation %} + + {% endblock navigation %}
- {% block navigation %} - - {% endblock navigation %} {% block layout %}