From eeaddb27560d723ca7d61359744ceb2709fccd2d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 15 Oct 2024 21:01:31 +0100 Subject: Renamed from pyblackbird_cc to alphabetlearning - everywhere --- alphabetlearning/templates/resources/admin_bar.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 alphabetlearning/templates/resources/admin_bar.html (limited to 'alphabetlearning/templates/resources/admin_bar.html') diff --git a/alphabetlearning/templates/resources/admin_bar.html b/alphabetlearning/templates/resources/admin_bar.html new file mode 100644 index 0000000..ddb8e00 --- /dev/null +++ b/alphabetlearning/templates/resources/admin_bar.html @@ -0,0 +1,21 @@ + {# admin block #} + {% if request.user.is_authenticated and request.user.is_staff %} +
+
Admin bar
+

+ Only you will see this bar - normal users will not see it. It allows us to + include buttons for adding new resources, etc. +

+
+ Add a new resource +
+ Logged in as + {{ request.user.email }} +
+
+ {% csrf_token %} + +
+
+
+ {% endif %} -- cgit v1.2.3