From 50dfd8ca4af3dfb45d3579aeb323f1425beb23bc Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 7 Oct 2024 20:21:31 +0100 Subject: Ditched flex-box on the detail page Resorted to using simple row and col classes here. Vary rudimentary at this stage but at least it gets them horizontally aligned. --- .../templates/resources/resource_detail.html | 141 +-------------------- 1 file changed, 7 insertions(+), 134 deletions(-) diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html index 33096a0..7f7362c 100644 --- a/pyblackbird_cc/templates/resources/resource_detail.html +++ b/pyblackbird_cc/templates/resources/resource_detail.html @@ -4,25 +4,15 @@ {% block content %} -
-
-

This should be left.

-
-
-

This should be right.

-
-
- - -
-
+
+
{% for tn_url, tn_filename in resource.thumbnails %} -
- {{ tn_filename }} +
+ {{ tn_filename }}
{% endfor %}
-
+

{{ resource.name }}

@@ -52,7 +42,7 @@
-
@@ -81,122 +71,5 @@
-
-
-
-
-

{{ resource.name }}

-
-
- - - - - - - - - - - - - - - - - - - - - - - -
Subject{{ resource.main_resource_category }}
Age range{{ resource.age_range }}
Resource type{{ resource.resource_type }}
Number of files{{ resource.pdf_filenames|length }}
Created{{ resource.created|date:"D d M Y" }}
-
-
Resource Description
-
{{ resource.description | markdown | safe }}
-
- -
- {% if request.user.is_authenticated and request.user.is_staff %} - Edit this resource - {% endif %} -
-
-
-
-
- -
-
-
-
-

Feature Images

-
-
-
- {% for tn_url, tn_filename in resource.thumbnails %} -
- {{ tn_filename }} -
- {% endfor %} -
-
-
-
-
- - - -{% for snapshot_filename, snapshot_urls in resource.snapshot_urls.items %} -
-
-
-
- {% if resource.snapshot_urls.items|length > 1 %} -

File - preview {{ forloop.counter }}: {{ snapshot_filename|cut:".pdf" }}

- {% else %} -

File preview: {{ snapshot_filename|cut:".pdf" }}

- {% endif %} -
-
- -
-
-
- {% endfor %} - -
{% endblock content %} + -- cgit v1.2.3