From 623d1924b7f81e14591e67e52bb90f4203b57acc Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 24 Oct 2020 20:31:59 +0100 Subject: [PATCH] Show if an event is online References #241 --- .../opdavies/templates/paragraph/paragraph--event.html.twig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/themes/custom/opdavies/templates/paragraph/paragraph--event.html.twig b/web/themes/custom/opdavies/templates/paragraph/paragraph--event.html.twig index e90ffb7..9f2e990 100644 --- a/web/themes/custom/opdavies/templates/paragraph/paragraph--event.html.twig +++ b/web/themes/custom/opdavies/templates/paragraph/paragraph--event.html.twig @@ -48,6 +48,7 @@ %} {% block paragraph %} {% set date = paragraph.field_date.0.value %} + {% set is_online = paragraph.field_is_online.0.value %} {% set is_remote = paragraph.field_remote.0.value %} {% set location = paragraph.field_location.0.value %} {% set name = paragraph.field_name.0.value %} @@ -66,6 +67,10 @@ {{ location }} {%- endif %} + {% if is_online %} + {{ '(Online)'|t }} + {% endif %} + {% if is_remote %} {{ '(Remote)'|t }} {% endif %}