From bfbcda8697cdd8ad03f0bc3c66855cd981274d35 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 1 Nov 2019 19:17:53 +0000 Subject: [PATCH] Refactor --- source/_layouts/helpers.html.twig | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/source/_layouts/helpers.html.twig b/source/_layouts/helpers.html.twig index d059c57f..a3acd83b 100644 --- a/source/_layouts/helpers.html.twig +++ b/source/_layouts/helpers.html.twig @@ -1,9 +1,4 @@ {% macro talkEventLocation(eventData, event) %} - {% if eventData.location %} - in {{ eventData.location }} - {% endif %} - - {% if event.online %} - (online) - {% endif %} + {{ eventData.location ? 'in ' ~ eventData.location }} + {{ event.online ? ' (online)' }} {% endmacro %}