From b56ce870a012ef4692b83a74677a021c1048b5f2 Mon Sep 17 00:00:00 2001 From: Igor Biki <ibiki@uwaterloo.ca> Date: Thu, 20 May 2021 09:06:52 -0400 Subject: [PATCH] ISTWCMS-4818 Reformatting _layout.twig file. --- .../_patterns/03-layouts/layout/_layout.twig | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/source/_patterns/03-layouts/layout/_layout.twig b/source/_patterns/03-layouts/layout/_layout.twig index 88e390da..23dec69c 100644 --- a/source/_patterns/03-layouts/layout/_layout.twig +++ b/source/_patterns/03-layouts/layout/_layout.twig @@ -18,54 +18,54 @@ {% for i in 1..num_of_blocks %} - {% set section_name = section_names[loop.index] %} + {% set section_name = section_names[loop.index] %} - {% if inverted_l_left or inverted_l_right %} - {% if loop.index == 1 %} - <div class="uw-inverted-l--left-side"> - {% endif %} + {% if inverted_l_left or inverted_l_right %} + {% if loop.index == 1 %} + <div class="uw-inverted-l--left-side"> + {% endif %} - {% if inverted_l_left and loop.index == 2 %} - <div class="uw-inverted-l--right-side"> + {% if inverted_l_left and loop.index == 2 %} + <div class="uw-inverted-l--right-side"> {% endif %} {% if inverted_l_right and loop.index == 4 %} - <div class="uw-inverted-l--right-side"> - {% endif %} + <div class="uw-inverted-l--right-side"> + {% endif %} - {% endif %} + {% endif %} - <div - {% if pattern_lab %} - {% set region_classes = 'layout__region ' ~ 'layout__region--' ~ section_name %} - class="{{ region_classes }}" - {% else %} - {{ region_attributes[section_name].addClass('layout__region', 'layout__region--' ~ section_name) }} - {% endif %} - > + <div + {% if pattern_lab %} + {% set region_classes = 'layout__region ' ~ 'layout__region--' ~ section_name %} + class="{{ region_classes }}" + {% else %} + {{ region_attributes[section_name].addClass('layout__region', 'layout__region--' ~ section_name) }} + {% endif %} + > - {% if pattern_lab %} - {{ section_name }} column - {% else %} - {{ content[section_name] }} - {% endif %} - </div> + {% if pattern_lab %} + {{ section_name }} column + {% else %} + {{ content[section_name] }} + {% endif %} + </div> - {% if inverted_l_left or inverted_l_right %} - {% if inverted_l_left %} + {% if inverted_l_left or inverted_l_right %} + {% if inverted_l_left %} {% if loop.index == 1 or loop.index == 4 %} - </div> - {% endif %} + </div> + {% endif %} {% endif %} {% if inverted_l_right %} - {% if loop.index == 3 or loop.index == 4 %} - </div> - {% endif %} - {% endif %} + {% if loop.index == 3 or loop.index == 4 %} + </div> + {% endif %} + {% endif %} {% endif %} - {% endfor %} + {% endfor %} </section> -- GitLab