Remove the slash between city and country name if either is empty

This commit is contained in:
Sasi Olin 2022-05-18 04:18:00 +02:00 committed by GitHub
parent a79e9ee993
commit 1c4a02110f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)