aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-09 14:23:03 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-09 14:23:03 +0100
commit082d6a7ee8bece150c04840474b18aa791f6300d (patch)
tree9c5d2b11c2bea022168eb473cc2260a0b3d7101f /pyblackbird_cc/resources
parent348594d8cbb8ba3b407568a13c0fee91d126557c (diff)
wip: implementing CSS classes for category colours on detail page
Diffstat (limited to 'pyblackbird_cc/resources')
-rw-r--r--pyblackbird_cc/resources/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/views.py b/pyblackbird_cc/resources/views.py
index 1b3312e..3bf3d22 100644
--- a/pyblackbird_cc/resources/views.py
+++ b/pyblackbird_cc/resources/views.py
@@ -292,6 +292,7 @@ def resource_detail(request, resource_id):
"card_description": resource_obj.card_description,
"resource_type": resource_obj.resource_type.name,
"main_resource_category": resource_obj.main_resource_category.name,
+ "main_resource_category_colour_css_class": resource_obj.main_resource_category.colour_css_class,
"additional_resource_category": (
resource_obj.subcategories.name if resource_obj.subcategories else None
),