From c14c2efcbefb3c2cce2828fa26f6e880ca09ae83 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 7 Oct 2024 21:01:49 +0100 Subject: Summary panel looks a little better --- .../templates/resources/resource_detail.html | 44 +++++++++++----------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html index 7f7362c..a4068ad 100644 --- a/pyblackbird_cc/templates/resources/resource_detail.html +++ b/pyblackbird_cc/templates/resources/resource_detail.html @@ -4,49 +4,51 @@ {% block content %} -
-
+
+
{% for tn_url, tn_filename in resource.thumbnails %}
- {{ tn_filename }} + {{ tn_filename }}
{% endfor %}
-
+
-

{{ resource.name }}

+

{{ resource.name }}

-
-
-

{{ resource.main_resource_category }}

-
-
-
-
-

{{ resource.age_range }}

+
+
+

{{ resource.main_resource_category }}

+
+

{{ resource.age_range }}

+
-
-
-

Number of PDF files: {{ resource.pdf_filenames|length }}

-
+ +
+ {% if resource.pdf_filenames|length > 1 %} +

Contains {{ resource.pdf_filenames|length }} PDF files.

+ {% else %} +

Contains {{ resource.pdf_filenames|length }} PDF file.

+ {% endif %}
+ +
+
-

Product summary

- +

Product summary

{{resource.card_description}}

-
+
-
-- cgit v1.2.3