From 1c4a02110f6994623cf683ed1239ec093fd7a5ae Mon Sep 17 00:00:00 2001 From: Sasi Olin Date: Wed, 18 May 2022 04:18:00 +0200 Subject: [PATCH] Remove the slash between city and country name if either is empty --- app/views/conferences/_conference_details.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/conferences/_conference_details.html.haml b/app/views/conferences/_conference_details.html.haml index ea33887e..80bb268b 100644 --- a/app/views/conferences/_conference_details.html.haml +++ b/app/views/conferences/_conference_details.html.haml @@ -12,7 +12,10 @@ = date_string(conference.start_date, conference.end_date) - if conference.venue %p - = "#{conference.city}/#{conference.country_name}" + >= conference.city + - if conference.city and conference.country_name + \/ + >= conference.country_name - unless conference.description.blank? %p = markdown(conference.description)