From 39888c6ac4222e3477206d86e17f80b1d69908a9 Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Tue, 24 Mar 2020 18:46:24 +0100 Subject: [PATCH] Don't hide all text if there is no locationlink --- layouts/eventpost.erb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/layouts/eventpost.erb b/layouts/eventpost.erb index 182024c..9f604db 100644 --- a/layouts/eventpost.erb +++ b/layouts/eventpost.erb @@ -73,20 +73,19 @@ - -<% if item[:locationlink] %>
<%= yield %>
- <%= render '/partials/_map.erb', location: item[:locationlink] %> + + <% if item[:locationlink] %> + <%= render '/partials/_map.erb', location: item[:locationlink] %> + <% end %>
-<% end %> - <% if item[:sponsors] %>