From: Michael Tremer Date: Sun, 28 Nov 2021 14:48:04 +0000 (+0000) Subject: mirrors: Redesign page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63883dc5b4731e02dc9153eed9c7e945332f9d1a;p=ipfire.org.git mirrors: Redesign page Each mirror now has a box with all required information Signed-off-by: Michael Tremer --- diff --git a/src/templates/download/mirrors.html b/src/templates/download/mirrors.html index ba4cdf0b..b01725d0 100644 --- a/src/templates/download/mirrors.html +++ b/src/templates/download/mirrors.html @@ -19,37 +19,47 @@
-
-
- {% for country in sorted(mirrors, key=lambda c: c.name) %} - -
-
-

{{ country.name }}

- - {{ _("One Mirror", "%(num)s Mirrors", len(mirrors[country])) % { "num" : len(mirrors[country]) } }} - -
+ {% for country in sorted(mirrors, key=lambda c: c.name) %} +
+

{{ country.name }}

+

+
-

-
+
+ {% for mirror in mirrors[country] %} +
+
+
+
+ {{ mirror.owner or mirror.hostname }} +
-
- {% for m in mirrors[country] %} - -
{{ m.hostname }}
- - {% if m.owner %} -

{{ m.owner }}

- {% end %} -
- {% end %} +
    + {% if mirror.asn %} +
  • + {{ _("Hosted at %s") % (mirror.address.autonomous_system or "AS%s" % mirror.asn) }} +
  • + {% end %} + + {% if mirror.state == "DOWN" %} +
  • + {{ _("Down since %s") % locale.format_date(mirror.last_update) }} +
  • + {% elif mirror.state == "OUTOFSYNC" %} +
  • + {{ _("Out of sync since %s") % locale.format_date(mirror.last_update) }} +
  • + {% end %} +
+
+
{% end %}
-
+ {% end %}
{% end block %}