From: Michael Tremer Date: Mon, 8 Jun 2020 18:14:32 +0000 (+0000) Subject: location: Show ASN when no name is available X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=565180372be9a7868f315ef04123f50d91a077b1;p=ipfire.org.git location: Show ASN when no name is available Signed-off-by: Michael Tremer --- diff --git a/src/templates/location/lookup.html b/src/templates/location/lookup.html index 6da92955..f4a2e824 100644 --- a/src/templates/location/lookup.html +++ b/src/templates/location/lookup.html @@ -16,7 +16,7 @@
{{ address.network }}
{{ _("Announced by") }}
-
{{ address.autonomous_system or _("N/A") }}
+
{{ address.autonomous_system or ("AS%s" % address.asn if address.asn else _("N/A")) }}
{% if address.country_code %}
{{ _("Country") }}