Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_wcms_ohana
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
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_ohana
Commits
276e34ff
Commit
276e34ff
authored
1 year ago
by
Martin Leblanc
Committed by
Kevin Paxman
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6654: Add the node media type to the node classes array
parent
1c076802
No related branches found
No related tags found
1 merge request
!156
Feature/istwcms 6654 m26lebla fix card header nodes with hero images
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/patterns/04-components/card/card--node/_card--node.twig
+1
-1
1 addition, 1 deletion
src/patterns/04-components/card/card--node/_card--node.twig
with
1 addition
and
1 deletion
src/patterns/04-components/card/card--node/_card--node.twig
+
1
−
1
View file @
276e34ff
{%
if
media_flags.has_media
%}
{%
if
media_flags.has_media
%}
{%
set
node_classes
=
'uw-node__with-media'
%}
{%
set
node_classes
=
'uw-node__with-media uw-node__with-media--'
~
node.media.type
%}
{%
else
%}
{%
else
%}
{%
set
node_classes
=
'uw-node__without-media'
%}
{%
set
node_classes
=
'uw-node__without-media'
%}
{%
endif
%}
{%
endif
%}
...
...
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