]> git.ipfire.org Git - ipfire.org.git/commitdiff
location: Do not show the map when we do not know the country
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jun 2020 18:14:03 +0000 (18:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jun 2020 18:14:03 +0000 (18:14 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/location/lookup.html

index 5ef9d38314d1bdfc84fc11574c3cc1b1dde30fe4..6da92955f4db54de1adfdd0e87d148f8e040b513 100644 (file)
@@ -4,9 +4,11 @@
 
 {% block main %}
        <div class="card">
-               <div class="card-img-top">
-                       {% module Map(address.country_code) %}
-               </div>
+               {% if address.country_code %}
+                       <div class="card-img-top">
+                               {% module Map(address.country_code) %}
+                       </div>
+               {% end %}
 
                <div class="card-body">
                        <dl class="row">