From e7e57126b90208dadb39b2d4b67864a690cd81f4 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 14 May 2024 16:37:33 +0100 Subject: Adds bootstrap, rids us of the CDN and better styling on detail page --- .../templates/resources/resource_detail.html | 104 ++++++++++++--------- 1 file changed, 60 insertions(+), 44 deletions(-) (limited to 'pyblackbird_cc/templates/resources') diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html index 6f8f3be..605f6bb 100644 --- a/pyblackbird_cc/templates/resources/resource_detail.html +++ b/pyblackbird_cc/templates/resources/resource_detail.html @@ -2,63 +2,79 @@ {% block content %}
-
-
-
-

{{ resource.name }}

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

{{ resource.name }}

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

Feature images

-
+
+
+

Feature images

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

Resource preview

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

Resource files preview

+ {% for snapshot_filename, snapshot_urls in resource.snapshot_urls.items %} +
{{ snapshot_filename }}
+
+
{% 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 +
+ {{ snapshot_filename }}
-
-
+ {% endfor %}
- {% endfor %} -
Logged in as {{ request.user.username }}
+
+
+ {% endfor %} +
+
+
+
+

What's included?

+
{{ resource.description }}
+

What's it for?

+
{% lorem %}
+

Resource Details

+
{% lorem %}
+
+
+
+
+
+
+

Download the resource

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