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 %}