Commit 8341279c authored by Agami4's avatar Agami4
Browse files

Issue #3198471 by agami4: Add condition for the location block

parent 07989bf2
......@@ -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">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment