diff --git a/.replit b/.replit index 3520ba63..3a20e06b 100644 --- a/.replit +++ b/.replit @@ -62,6 +62,10 @@ externalPort = 3000 localPort = 45245 externalPort = 3001 +[[ports]] +localPort = 46519 +externalPort = 3002 + [deployment] deploymentTarget = "autoscale" run = [ diff --git a/templates/parks/park_detail.html b/templates/parks/park_detail.html index dbc554aa..cf37da26 100644 --- a/templates/parks/park_detail.html +++ b/templates/parks/park_detail.html @@ -186,7 +186,19 @@ {% if park.location.exists %}

Location

-
+ {% with location=park.location.first %} + {% if location.latitude is not None and location.longitude is not None %} +
+ {% else %} +
+ +

Location information not available

+
+ {% endif %} + {% endwith %}
{% endif %} @@ -262,22 +274,13 @@ - -{% with location=park.location.first %} -{% if location.latitude and location.longitude %} - - {% endif %} -{% endwith %} -{% endif %} {% endblock %}