From: Sven Hoehn Date: Wed, 6 Dec 2017 17:01:20 +0000 (+0100) Subject: Bootstrap 4 migration: geoip.dev.ipfire.org X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;ds=sidebyside;h=fda8d9e6033b534417e013067f31155f3584120a;hp=3ca6409babd75ae422db0c53aaa122e49b25a0d8;p=people%2Fshoehn%2Fipfire.org.git Bootstrap 4 migration: geoip.dev.ipfire.org --- 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 %}