From 1121569d94164d459e255a7e24f9ea2fac6af7a7 Mon Sep 17 00:00:00 2001 From: boris Date: Mon, 19 Jan 2026 16:40:02 +0000 Subject: [PATCH] Fixed JS errors, moved app list below dashboard tabs for consistency --- app/keywarden/settings/base.py | 3 +- app/templates/admin/base_site.html | 1 + app/templates/admin/index.html | 2 - app/templates/unfold/helpers/app_list.html | 81 ++++++++++++++++++++++ 4 files changed, 83 insertions(+), 4 deletions(-) create mode 100644 app/templates/admin/base_site.html create mode 100644 app/templates/unfold/helpers/app_list.html diff --git a/app/keywarden/settings/base.py b/app/keywarden/settings/base.py index 1eb8b12..c6faed0 100644 --- a/app/keywarden/settings/base.py +++ b/app/keywarden/settings/base.py @@ -143,7 +143,6 @@ UNFOLD = { ], "SCRIPTS": [ "/static/unfold/js/simplebar.js", - "/static/unfold/js/alpine.js", ], "SITE_DROPDOWN": [ { @@ -229,4 +228,4 @@ LOGIN_REDIRECT_URL = "/" LOGOUT_REDIRECT_URL = "/" def permission_callback(request): - return request.user.has_perm("keywarden.change_model") \ No newline at end of file + return request.user.has_perm("keywarden.change_model") diff --git a/app/templates/admin/base_site.html b/app/templates/admin/base_site.html new file mode 100644 index 0000000..55c57af --- /dev/null +++ b/app/templates/admin/base_site.html @@ -0,0 +1 @@ +{% extends "admin/base.html" %} diff --git a/app/templates/admin/index.html b/app/templates/admin/index.html index 2f44ef1..2fc9093 100644 --- a/app/templates/admin/index.html +++ b/app/templates/admin/index.html @@ -35,5 +35,3 @@ {% endblock %} - - diff --git a/app/templates/unfold/helpers/app_list.html b/app/templates/unfold/helpers/app_list.html new file mode 100644 index 0000000..270b294 --- /dev/null +++ b/app/templates/unfold/helpers/app_list.html @@ -0,0 +1,81 @@ +{% load i18n unfold %} + +{% if sidebar_navigation %} + +{% else %} +

+ {% trans "You don't have permission to view or edit anything." as error_message %} + {% include "unfold/helpers/messages/error.html" with error=error_message %} +

+{% endif %}