]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/templates/location/index.html
Migrate to libloc
[ipfire.org.git] / src / templates / location / index.html
index 55e35e10b31228a84b1b0275cab8359ec5ded60f..97e8399e3dad7a34bc4415639ae8b374aecbd7fe 100644 (file)
@@ -13,7 +13,7 @@
                                <div class="col-12 col-md-6 my-5 text-center">
                                        <i class="fas fa-globe-europe fa-10x py-5"></i>
 
-                                       <h3>2001:678:b28::</h3>
+                                       <h3>{{ address }}</h3>
                                </div>
 
                                <div class="col-12 col-md-6 align-self-center px-3">
 
                                        <dl class="row">
                                                <dt class="col-sm-3">{{ _("Country") }}</dt>
-                                               <dd class="col-sm-9">Germany</dd>
+                                               <dd class="col-sm-9">
+                                                       {{ format_country_name(address.country_code) if address.country_code else _("N/A") }}
+                                               </dd>
 
                                                <dt class="col-sm-3">{{ _("Network") }}</dt>
-                                               <dd class="col-sm-9">AS204867 - Lightning Wire Labs GmbH</dd>
+                                               <dd class="col-sm-9">{{ address.asn or _("Unknown") }}</dd>
                                        </dl>
                                </div>
                        </div>