From 886aca24778b72edd89726c90783f8c32438db2c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 21 Oct 2024 20:51:42 +0100 Subject: wip: have featured cards lined up on resource index page --- .../resources/resource_card_standard.html | 55 +++++++++------------- 1 file changed, 22 insertions(+), 33 deletions(-) (limited to 'alphabetlearning/templates/resources/resource_card_standard.html') diff --git a/alphabetlearning/templates/resources/resource_card_standard.html b/alphabetlearning/templates/resources/resource_card_standard.html index 640f75d..cf2b786 100644 --- a/alphabetlearning/templates/resources/resource_card_standard.html +++ b/alphabetlearning/templates/resources/resource_card_standard.html @@ -3,67 +3,56 @@ -
-
-
- {{ resource.thumbnail_filename }} +
+
+ {{ resource.thumbnail_filename }}
-
-
-
-
+
+ -
- {{ resource.age_range }} +
+ {{ resource.age_range }} {% if resource.main_resource_category_name == "English as a Foreign Language (EFL)" %} - EFL + EFL {% else %} - {{ resource.main_resource_category_name }} + {{ resource.main_resource_category_name }} {% endif %} {% if request.user.is_authenticated and request.user.is_staff %} - Feature slot: {{ resource.feature_slot }} + Feature slot: {{ resource.feature_slot }} {% endif %}
-
+

{{ resource.card_description }}

-
-

1 credit

+
+

1 credit

{% if resource.in_cart %}
{% csrf_token %} - +
{% else %}
{% csrf_token %} - +
{% endif %} - -
{% if request.user.is_authenticated and request.user.is_staff %} - -
-- cgit v1.2.3