From a6a5a0ef97efd5eabdc65a7f78adb670b0350269 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 21 Oct 2024 21:25:22 +0100 Subject: wip: still working on the resource index page --- .../templates/resources/admin_bar.html | 29 ++++++---------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to 'alphabetlearning/templates/resources/admin_bar.html') diff --git a/alphabetlearning/templates/resources/admin_bar.html b/alphabetlearning/templates/resources/admin_bar.html index be49e65..6d7b4b6 100644 --- a/alphabetlearning/templates/resources/admin_bar.html +++ b/alphabetlearning/templates/resources/admin_bar.html @@ -1,21 +1,8 @@ - {# 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 %} +{# admin block #} +{% if request.user.is_authenticated and request.user.is_staff %} +

Admin

+

(this is not visible to customers!)

+
+ Add a new resource +
+{% endif %} -- cgit v1.2.3