From e768f221ffbdd5f75c3818169dd5eefdd702e635 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 14 May 2024 15:28:36 +0100 Subject: Trying to improve the CSS of the detail page --- pyblackbird_cc/templates/base.html | 1 + .../templates/resources/resource_detail.html | 92 +++++++++++++--------- 2 files changed, 54 insertions(+), 39 deletions(-) (limited to 'pyblackbird_cc/templates') diff --git a/pyblackbird_cc/templates/base.html b/pyblackbird_cc/templates/base.html index ce0a4ca..4e06117 100644 --- a/pyblackbird_cc/templates/base.html +++ b/pyblackbird_cc/templates/base.html @@ -77,6 +77,7 @@ +
{% block body %} {% if messages %} diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html index a52c2c6..6f8f3be 100644 --- a/pyblackbird_cc/templates/resources/resource_detail.html +++ b/pyblackbird_cc/templates/resources/resource_detail.html @@ -1,50 +1,64 @@ {% extends 'base.html' %} {% block content %} - -
-

Feature images

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

{{ resource.name }}

+
Subject: {{ resource.main_resource_category }}
+
Age range: {{ resource.age_range }}
+
Resource type: {{ resource.resource_type }}
+
+
-

Resource preview

-
- {% for snapshot_filename, snapshot_urls in resource.snapshot_urls.items %} +
+
+

Feature images

-

{{ snapshot_filename }}

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

Resource preview

- {% for snapshot_url in snapshot_urls %}{{ snapshot_filename }}{% endfor %} -
-

What's included?

-
{{ resource.description }}
-

What's it for?

-
{% lorem %}
-

Resource Details

-
{% lorem %}
-
-
-

Download the resource

+ {% for snapshot_filename, snapshot_urls in resource.snapshot_urls.items %} +
{{ snapshot_filename }}
- Click - - to download the resource + {% for snapshot_url in snapshot_urls %} + {{ snapshot_filename }} + {% endfor %} +
+

What's included?

+
{{ resource.description }}
+

What's it for?

+
{% lorem %}
+

Resource Details

+
{% lorem %}
+
+
+

Download the resource

+
+ Click + + to download the resource +
+
+
-
-
+ {% endfor %} +
Logged in as {{ request.user.username }}
- {% endfor %} -
Logged in as {{ request.user.username }}
- {% endblock content %} -
+
+
+{% endblock content %} -- cgit v1.2.3