From: Michael Tremer Date: Mon, 8 Jun 2020 18:14:03 +0000 (+0000) Subject: location: Do not show the map when we do not know the country X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa594847a35162ecaa596b6d4a94890627a3dce9;p=ipfire.org.git location: Do not show the map when we do not know the country Signed-off-by: Michael Tremer --- diff --git a/src/templates/location/lookup.html b/src/templates/location/lookup.html index 5ef9d383..6da92955 100644 --- a/src/templates/location/lookup.html +++ b/src/templates/location/lookup.html @@ -4,9 +4,11 @@ {% block main %}
-
- {% module Map(address.country_code) %} -
+ {% if address.country_code %} +
+ {% module Map(address.country_code) %} +
+ {% end %}