Skip to content

Commit

Permalink
Update node--ubc-event--full.html.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
occupant committed Sep 5, 2024
1 parent f309dbb commit 445e481
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion templates/content/node--ubc-event--full.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
{% set eventdate = 'Ongoing event' %}
{% set time = '' %}
{% endif %}
{% if node.field_event_is_virtual.value %}
{% set eventvirtual = 'Virtual event' %}
{% endif %}

<article{{ attributes.addClass(classes) }}>
<div{{ content_attributes.addClass(content_classes) }}>
Expand All @@ -132,7 +135,12 @@
{% if not (node.field_event_date.isEmpty == true) and content.field_event_date is defined %}
<h2 class="mt-0 font-sans font-normal h4">{{ eventdate }}{{ time }}</h2>
{% endif %}
{% if not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %}
{% if not (node.field_event_is_virtual.isEmpty == true) and content.field_event_is_virtual is defined %}
<div class="mt-2 text-sm text-grey-700">
{{ eventvirtual }}
</div>
{% endif %}
{% if not eventvirtual and not (node.field_event_location.isEmpty == true) and content.field_event_location is defined %}
<div class="mt-2 text-sm text-grey-700">
{{ content.field_event_location.0.address_line1 }}
{% if not (node.field_event_location.0.address_line2.isEmpty == true) %}
Expand Down

0 comments on commit 445e481

Please sign in to comment.