From f66350ce2ed3aee33fc493490afb9cab45700e11 Mon Sep 17 00:00:00 2001 From: Rico Hoppe Date: Tue, 9 May 2023 19:12:36 +0000 Subject: [PATCH] mirrors.html: converted to new design --- src/templates/download/mirrors.html | 153 +++++++++++++++++++++++----- 1 file changed, 130 insertions(+), 23 deletions(-) diff --git a/src/templates/download/mirrors.html b/src/templates/download/mirrors.html index 7d1f2858..c21546d7 100644 --- a/src/templates/download/mirrors.html +++ b/src/templates/download/mirrors.html @@ -6,39 +6,146 @@ {% set total = sum((len(m) for c, m in mirrors.items())) %} {% set countries = len(mirrors) %} -
-
-

{{ _("Mirrors") }}

- -

- {{ _("IPFire downloads are being served from %(total)s mirror servers " - "sponsored by various organizations in %(countries)s countries " - "helping us making it available for everyone") % { "total" : total, "countries" : countries } }} -

+
+
+
+ +

+ {{ _("Mirrors") }} +

+

+ {{ _("IPFire downloads are being served from %(total)s mirror servers " + "sponsored by various organizations in %(countries)s countries " + "helping us making it available for everyone") % { "total" : total, "countries" : countries } }} +

+
-
+
-
- {% for country in sorted(mirrors, key=lambda c: c.name) %} -
-

{{ country.name }}

-

+ {% for country in sorted(mirrors, key=lambda c: c.name) %} +
+

+ + {{ country.name }} +

+ + {% for mirror in mirrors[country] %} +
+
+
+
+
+
+
+ + +
+
    + {% if mirror.asn %} +
  • + {{ _("Hosted at %s") % (mirror.address.autonomous_system or "AS%s" % mirror.asn) }} +
  • + {% end %} +
+
+ +
+
+
+
+
+ {% end %}
+
+ {% end %} +
+ {% end %} +
+ + + + -- 2.47.3