From c763111cdc6bcba0138886fa8ad7945f9688431b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 1 Sep 2024 19:32:08 +0100 Subject: Improved resource list layout - "horizontal" arrangement of standard resources --- .../resources/resource_card_standard.html | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 pyblackbird_cc/templates/resources/resource_card_standard.html (limited to 'pyblackbird_cc/templates/resources/resource_card_standard.html') diff --git a/pyblackbird_cc/templates/resources/resource_card_standard.html b/pyblackbird_cc/templates/resources/resource_card_standard.html new file mode 100644 index 0000000..8dc6fba --- /dev/null +++ b/pyblackbird_cc/templates/resources/resource_card_standard.html @@ -0,0 +1,57 @@ +{% load static %} +{% load markdown_extras %} + + +
+ +
+
+
+ {{ resource.thumbnail_filename }} +
+
+
+ +
+ {{ resource.age_range }} +
+
+ {% if resource.main_resource_category_name == "English as a Foreign Language (EFL)" %} + EFL + {% else %} + {{ resource.main_resource_category_name }} + {% endif %} +
+ {% if request.user.is_authenticated and request.user.is_staff %} +
+ Feature slot: {{ resource.feature_slot }} +
+ {% endif %} +{# {% if resource.card_description %}#} +{#

{{ resource.card_description | markdown | safe }}

#} +{# {% else %}#} +{#

{{ resource.description | markdown | safe }}

#} +{# {% endif %}#} +

FREE

+
+
+ {% if request.user.is_authenticated and request.user.is_staff %} + + {% endif %} +
+
+
\ No newline at end of file -- cgit v1.2.3