From bea8fa333266552b44f09b35994a41657b666d11 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 29 Jul 2024 14:36:00 +0100 Subject: Handle the long EFL badge name The full title of "English as a Foreign Language (EFL)" did not fit inside a badge, so we have had to add a conditional in the template to guard against it. --- pyblackbird_cc/templates/resources/resource_list.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pyblackbird_cc/templates/resources/resource_list.html') diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html index 4609519..ac27d69 100644 --- a/pyblackbird_cc/templates/resources/resource_list.html +++ b/pyblackbird_cc/templates/resources/resource_list.html @@ -56,8 +56,13 @@ href="{% url 'resources:resource_detail' resource_id=resource.id %}">{{ resource.name }}
- {{ resource.main_resource_category_name }} + {% if resource.main_resource_category_name == "English as a Foreign Language (EFL)" %} + EFL + {% else %} + {{ resource.main_resource_category_name }} + {% endif %}
{{ resource.age_range }} -- cgit v1.2.3