Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_wcms_gesso
Commits
87972d65
Commit
87972d65
authored
Jan 19, 2022
by
Eric Bremner
Committed by
Martin Leblanc
Jan 31, 2022
Browse files
ISTWCMS-5331: fixing header in card so that things so properly
parent
b96624a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
source/_patterns/04-components/card/card--node/_card--node.twig
.../_patterns/04-components/card/card--node/_card--node.twig
+0
-6
source/_patterns/04-components/card/card.twig
source/_patterns/04-components/card/card.twig
+1
-7
No files found.
source/_patterns/04-components/card/card--node/_card--node.twig
View file @
87972d65
...
...
@@ -6,12 +6,6 @@
{%
set
modifier_classes
=
'node--'
~
node.bundle
%}
{%
if
node.bundle
==
'profile'
%}
{%
set
show_header
=
'yes'
%}
{%
else
%}
{%
set
show_header
=
'no'
%}
{%
endif
%}
<div
class=
"uw-node__
{{
node_image_class
}}
"
>
{%
include
'@components/card/card.twig'
with
{
'url'
:
node.url
,
...
...
source/_patterns/04-components/card/card.twig
View file @
87972d65
...
...
@@ -23,7 +23,7 @@
}
%}
{%
endif
%}
{%
if
header
and
show_title
==
'yes'
%}
{%
if
header
%}
{%
include
'@components/card/card-elements/_header.twig'
with
{
'header'
:
header
,
'show_title'
:
show_title
,
...
...
@@ -31,12 +31,6 @@
'image'
:
image
,
'bundle'
:
bundle
}
%}
{%
elseif
show_header
==
'yes'
%}
{%
include
'@components/card/card-elements/_header.twig'
with
{
'header'
:
header
,
'show_title'
:
'no'
,
'type'
:
type
}
%}
{%
endif
%}
{%
if
content
or
banner
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment