From b059587e61cef2d20fb2614aea21685ff4c1b9ce Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 29 Jul 2024 14:53:00 +0100 Subject: Tidy up the HTML only --- pyblackbird_cc/templates/resources/resource_list.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'pyblackbird_cc/templates') diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html index 73c9113..34c272f 100644 --- a/pyblackbird_cc/templates/resources/resource_list.html +++ b/pyblackbird_cc/templates/resources/resource_list.html @@ -7,6 +7,8 @@ Joanna Lemon Learning - Resource List {% endblock title %} {% block content %} + + {# admin block #} {% if request.user.is_authenticated and request.user.is_staff %}
Admin bar
@@ -34,8 +36,9 @@
{% endif %} + + {# featured resources#}
-
{% if featured_resources %}
@@ -62,7 +65,7 @@ {% else %} {{ resource.main_resource_category_name }} - {% endif %} + {% endif %}
{{ resource.age_range }} @@ -92,6 +95,8 @@ {% endif %}
+ + {# standard resources #}
{% if resource_list %} @@ -119,7 +124,7 @@ {% else %} {{ resource.main_resource_category_name }} - {% endif %} + {% endif %}
{{ resource.age_range }} -- cgit v1.2.3