Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
socialblue
Commits
8341279c
Commit
8341279c
authored
Mar 31, 2021
by
Agami4
Browse files
Issue
#3198471
by agami4: Add condition for the location block
parent
07989bf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/node/event/node--event--featured--sky.html.twig
View file @
8341279c
...
...
@@ -38,13 +38,15 @@
{%
-
endblock
-
%}
{%
endembed
%}
{%
embed
"node--teaser__field.html.twig"
%}
{%
-
block
field_icon
-
%}
location
{%
-
endblock
-
%}
{%
-
block
field_value
-
%}
<span
class=
"sr-only"
>
{%
trans
%}
The event will take place at the
{%
endtrans
%}
</span>
{{
content.field_event_location
}}
{%
-
endblock
-
%}
{%
endembed
%}
{%
if
content.field_event_location
|
render
%}
{%
embed
"node--teaser__field.html.twig"
%}
{%
-
block
field_icon
-
%}
location
{%
-
endblock
-
%}
{%
-
block
field_value
-
%}
<span
class=
"sr-only"
>
{%
trans
%}
The event will take place at the
{%
endtrans
%}
</span>
{{
content.field_event_location
}}
{%
-
endblock
-
%}
{%
endembed
%}
{%
endif
%}
{%
if
content.ongoing
%}
<span
class=
"badge badge-primary teaser__badge"
>
...
...
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