From fda8d9e6033b534417e013067f31155f3584120a Mon Sep 17 00:00:00 2001 From: Sven Hoehn Date: Wed, 6 Dec 2017 18:01:20 +0100 Subject: [PATCH] Bootstrap 4 migration: geoip.dev.ipfire.org --- templates/geoip/index.html | 112 +++++++++++++++++++------------------ 1 file changed, 57 insertions(+), 55 deletions(-) diff --git a/templates/geoip/index.html b/templates/geoip/index.html index e0609a4..ea44a67 100644 --- a/templates/geoip/index.html +++ b/templates/geoip/index.html @@ -3,65 +3,67 @@ {% block title %}{{ _("GeoIP for %s") % addr }}{% end block %} {% block body %} - - - {% if peer %} -
-
-
- {% if peer.asn %} -
{{ _("Autonomous System") }}
-
{{ peer.asn }}
- {% end %} - -
{{ _("Country") }}
-
- {% if peer.country_name %} - {{ peer.country_name }} ({{ peer.country }}) - {% else %} - {{ peer.country_name }} +
+
+

{{ _("GeoIP for %s") % addr }}

+ + {% if peer %} +
+
+
+ {% if peer.asn %} +
{{ _("Autonomous System") }}
+
{{ peer.asn }}
{% end %} -
- - {% if peer.city %} -
{{ _("City") }}
-
{{ peer.city }}
- - {% if peer.postal_code %} -
{{ _("Postal Code") }}
-
{{ peer.postal_code }}
+ +
{{ _("Country") }}
+
+ {% if peer.country_name %} + {{ peer.country_name }} ({{ peer.country }}) + {% else %} + {{ peer.country_name }} + {% end %} +
+ + {% if peer.city %} +
{{ _("City") }}
+
{{ peer.city }}
+ + {% if peer.postal_code %} +
{{ _("Postal Code") }}
+
{{ peer.postal_code }}
+ {% end %} {% end %} +
+ + {% if mirrors %} +

{{ _("Preferred Mirrors") }}

+ + {% end %} - - - {% if mirrors %} -

{{ _("Preferred Mirrors") }}

- - - {% end %} +
+ +
+ {% module Map(peer.latitude, peer.longitude) %} +
- -
- {% module Map(peer.latitude, peer.longitude) %} + {% else %} +
+

{{ _("No GeoIP information could be found for the IP address '%s'.") % addr }}

-
- {% else %} -
- {{ _("No GeoIP information could be found for the IP address '%s'.") % addr }} -
- {% end %} + {% end %} + + {% end block %} -- 2.39.2