From dcefb7dfc5b171fcc18fb0adf11a49cb39ff2c6b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 28 Jul 2024 16:31:21 +0100 Subject: Added border and badge colour based on category - You have to define them on the ResourceCategory model in the database --- pyblackbird_cc/templates/resources/resource_list.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pyblackbird_cc/templates/resources') diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html index 6f9edef..454ba45 100644 --- a/pyblackbird_cc/templates/resources/resource_list.html +++ b/pyblackbird_cc/templates/resources/resource_list.html @@ -46,7 +46,7 @@
{% for resource in featured_resources %} -
+
{{ resource.thumbnail_filename }} @@ -54,7 +54,7 @@
{{ resource.name }}
- {{ resource.main_resource_category_name }} + {{ resource.main_resource_category_name }}
{{ resource.age_range }} @@ -94,7 +94,8 @@
{% for resource in resource_list %} -
+{#
#} +
{{ resource.thumbnail_filename }} @@ -102,7 +103,7 @@
{{ resource.name }}
- {{ resource.main_resource_category_name }} + {{ resource.main_resource_category_name }}
{{ resource.age_range }} -- cgit v1.2.3