aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pyblackbird_cc/templates/resources/resource_list.html11
1 files changed, 8 insertions, 3 deletions
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 %}
<div class="row bg-white p-4 rounded border border-success border-opacity-25">
<h5 class="text-decoration-underline">Admin bar</h5>
@@ -34,8 +36,9 @@
</div>
</div>
{% endif %}
+
+ {# featured resources#}
<div class="row my-4">
- <!-- Featured resources first -->
<div class="col">
{% if featured_resources %}
<div class="row my-4 text-center">
@@ -62,7 +65,7 @@
{% else %}
<span class="badge me-2"
style="background-color: {{ resource.main_resource_category_colour_css_class }}; color: {{ resource.main_resource_badge_foreground_colour }}">{{ resource.main_resource_category_name }}</span>
- {% endif %}
+ {% endif %}
</div>
<div>
<span class="badge bg-secondary me-2">{{ resource.age_range }}</span>
@@ -92,6 +95,8 @@
{% endif %}
</div>
</div>
+
+ {# standard resources #}
<div class="d-flex flex-row justify-content-between flex-wrap">
<div class="col">
{% if resource_list %}
@@ -119,7 +124,7 @@
{% else %}
<span class="badge me-2"
style="background-color: {{ resource.main_resource_category_colour_css_class }}; color: {{ resource.main_resource_badge_foreground_colour }}">{{ resource.main_resource_category_name }}</span>
- {% endif %}
+ {% endif %}
</div>
<div>
<span class="badge bg-secondary me-2">{{ resource.age_range }}</span>