From 886aca24778b72edd89726c90783f8c32438db2c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 21 Oct 2024 20:51:42 +0100 Subject: wip: have featured cards lined up on resource index page --- .../templates/resources/admin_bar.html | 12 +- .../resources/resource_card_featured.html | 73 +++++------ .../resources/resource_card_standard.html | 55 ++++----- .../templates/resources/resource_create.html | 4 +- .../templates/resources/resource_list.html | 135 +++++++++++---------- 5 files changed, 129 insertions(+), 150 deletions(-) (limited to 'alphabetlearning/templates/resources') diff --git a/alphabetlearning/templates/resources/admin_bar.html b/alphabetlearning/templates/resources/admin_bar.html index ddb8e00..be49e65 100644 --- a/alphabetlearning/templates/resources/admin_bar.html +++ b/alphabetlearning/templates/resources/admin_bar.html @@ -1,20 +1,20 @@ {# admin block #} {% if request.user.is_authenticated and request.user.is_staff %} -
-
Admin bar
+
+
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 -
+
+ Add a new resource +
Logged in as {{ request.user.email }}
{% csrf_token %} - +
diff --git a/alphabetlearning/templates/resources/resource_card_featured.html b/alphabetlearning/templates/resources/resource_card_featured.html index 0782b0c..2145eb4 100644 --- a/alphabetlearning/templates/resources/resource_card_featured.html +++ b/alphabetlearning/templates/resources/resource_card_featured.html @@ -1,59 +1,48 @@ {% load static %} {% load markdown_extras %} -
- {{ resource.thumbnail_filename }} -
-
-
{{ resource.name }}
+