From 7271aea1aa5747833f8df25fb5015fc015ba5845 Mon Sep 17 00:00:00 2001 From: Tibor Leupold Date: Fri, 20 Jan 2023 16:44:20 -0800 Subject: [PATCH] Fix template indentation --- .../fragments/blocks/card_grid_block.html | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/network-api/networkapi/templates/fragments/blocks/card_grid_block.html b/network-api/networkapi/templates/fragments/blocks/card_grid_block.html index 281e5126c..254426c1f 100644 --- a/network-api/networkapi/templates/fragments/blocks/card_grid_block.html +++ b/network-api/networkapi/templates/fragments/blocks/card_grid_block.html @@ -2,15 +2,15 @@ {% load wagtailcore_tags wagtailimages_tags %} {% block block_content %} -
- {% for block in self.cards %} - {% with card=block count=self.cards|length %} -
-
+
+ {% for block in self.cards %} + {% with card=block count=self.cards|length %} +
+
-
- - {% comment %} +
+ + {% comment %} Because of the card layout, the image size is not increasing consistently with the device size. The image sizes are based on the layout on a banner page with wide layout. The designed image aspect ratio is 16:9. @@ -25,35 +25,35 @@ The picture element will use the first source with a matching media query. Using min-media queries, we need to list the breakpoints in decending order, otherwise larger screens will always use the first listed (because that min-width query would be fulfilled). {% endcomment %} - {% image card.image fill-512x288 as img_small %} - {% image card.image fill-1024x576 as img_small_2x %} - {% image card.image fill-336x189 as img_medium %} - {% image card.image fill-672x378 as img_medium_2x %} - {% image card.image fill-448x252 as img_large %} - {% image card.image fill-896x504 as img_large_2x %} - {% image card.image fill-592x333 as img_xlarge %} - {% image card.image fill-1184x666 as img_xlarge_2x %} - - - - - {{ img_small.alt_text }} - -
+ {% image card.image fill-512x288 as img_small %} + {% image card.image fill-1024x576 as img_small_2x %} + {% image card.image fill-336x189 as img_medium %} + {% image card.image fill-672x378 as img_medium_2x %} + {% image card.image fill-448x252 as img_large %} + {% image card.image fill-896x504 as img_large_2x %} + {% image card.image fill-592x333 as img_xlarge %} + {% image card.image fill-1184x666 as img_xlarge_2x %} + + + + + {{ img_small.alt_text }} +
+
-
-
-

{{ card.title }}

-

{{ card.body }}

- {% if card.link_label and card.link_url %} - {{ card.link_label }} - {% endif %} -
-
+
+
+

{{ card.title }}

+

{{ card.body }}

+ {% if card.link_label and card.link_url %} + {{ card.link_label }} + {% endif %} +
+
-
-
- {% endwith %} - {% endfor %} -
+
+
+ {% endwith %} + {% endfor %} +
{% endblock %}