Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_wcms_gesso
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_wcms_gesso
Commits
b56ce870
"README.md" did not exist on "1ec2d19703e1f4db0aad581a2c7d65a836c3cb78"
Commit
b56ce870
authored
3 years ago
by
Igor Biki
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4818 Reformatting _layout.twig file.
parent
f15ca0f8
No related branches found
No related tags found
2 merge requests
!63
Tag 3.0.1
,
!58
Feature/istwcms 4818 ibiki ofis module
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/_patterns/03-layouts/layout/_layout.twig
+33
-33
33 additions, 33 deletions
source/_patterns/03-layouts/layout/_layout.twig
with
33 additions
and
33 deletions
source/_patterns/03-layouts/layout/_layout.twig
+
33
−
33
View file @
b56ce870
...
...
@@ -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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment