diff --git a/pug/templates/individual_event_page.pug b/pug/templates/individual_event_page.pug index 2f94179f155e9b9fce20daf57cbba256c0fe2b87..fcdbe3844a35c0adff259f345f71c28f956e33e8 100644 --- a/pug/templates/individual_event_page.pug +++ b/pug/templates/individual_event_page.pug @@ -44,8 +44,11 @@ block content h4.list-group-item-heading= evt.name .list-group-item.separator label= "LOCATION" - a(href="http://www.openstreetmap.org/?mlat=" + evt.lat + "&mlon=" + evt.lng + "&ref=FSCI") - h4.list-group-item-heading= evt.locationname + if (evt.lat != "" && evt.lng != "") + a(href="http://www.openstreetmap.org/?mlat=" + evt.lat + "&mlon=" + evt.lng + "&ref=FSCI") + h4.list-group-item-heading= evt.locationame + else + h4.list-group-item-heading= evt.locationame .list-group-item.separator label= "ORGANIZED BY" h4.list-group-item-heading= evt.organizedby