From: Rico Hoppe Date: Sat, 21 Oct 2023 16:24:52 +0000 (+0000) Subject: fireinfo/index: restyled the page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a32f364477f923a117d51be5da6dea6b63c1bf95;p=ipfire.org.git fireinfo/index: restyled the page --- diff --git a/src/templates/fireinfo/index.html b/src/templates/fireinfo/index.html index 201e3c46..72d3ac9a 100644 --- a/src/templates/fireinfo/index.html +++ b/src/templates/fireinfo/index.html @@ -3,136 +3,152 @@ {% block title %}{{ _("Fireinfo") }}{% end block %} {% block container %} -
-
-

{{ _("Fireinfo") }}

+
+
+
+ -

- Fireinfo is a tool that anonymously collects statistical - data from IPFire systems -

+

{{ _("Fireinfo") }}

-
-
+
-
+
-
+
{% if latest_release %} -
+
-

+

{{ "%.2f%%" % (latest_release.penetration * 100) }}

-
+
{{ _("of all IPFire systems are on the latest release, released %s") % locale.format_date(latest_release.published, relative=True, shorter=True) }}
- + {{ _("See All Releases") }}
{% end %} -
- IPFire Logo +
+ IPFire Logo
-
+
-

{{ _("Locations") }}

+

{{ _("Locations") }}

-
- {% for country_code, percentage in locations %} + {% for country_code, percentage in locations %} +
{% if percentage >= 0.01 %} -
- - {{ format_country_name(country_code) }} -
+
+ + {{ format_country_name(country_code) }} +
-
+
{% module ProgressBar(percentage, "success") %} -
+
{% end %} - {% end %} -
+
+ {% end %}

- {{ _("IPFire is also running in these countries: %s") % locale.list([(format_country_name(c) or c) for c, p in locations if p < 0.01]) }} + IPFire_ + {{_("is also running in these countries: %s") % locale.list([(format_country_name(c) or c) for c, p in locations if p < 0.01]) }}

-
+
-
-
-

{{ _("Architectures") }}

- -
- {% for name, percentage in arches %} -
{{ name }}
- -
- {% module ProgressBar(percentage, "success") %} -
- {% end %} -
-
- -
-

{{ _("CPU Vendors") }}

+
+
+
+

{{ _("CPU Vendors") }}

-
{% for name, percentage in cpu_vendors %} -
{{ name }}
+
+
{{ name }}
-
- {% module ProgressBar(percentage, "success") %} -
+
+ {% module ProgressBar(percentage, "success") %} +
+
{% end %} -
- + +
+

{{ _("Architectures") }}

+ + {% for name, percentage in arches %} +
+
{{ name }}
+ +
+ {% module ProgressBar(percentage, "success") %} +
+
+ {% end %} +
+
+
+

{{ format_size(memory_avg * 1024, "MB") }}

+ + + {{ _("Average Amount of Memory") }} +
-
+
-
-
-
-

- {{ "%.2f%%" % (virtual_ratio * 100) }} -

- -
{{ _("of all IPFire systems are running in a virtual environment") }}
-
+
+
+

+ {{ "%.2f%%" % (virtual_ratio * 100) }} +

+ +
{{ _("of all IPFire systems are running in a virtual environment") }}
-
-

{{ _("Top Hypervisors") }}

+
+

{{ _("Top Hypervisors") }}

-
- {% for name, percentage in hypervisors %} + {% for name, percentage in hypervisors %} +
{% if percentage >= 0.01 %} -
+
{% if name == "unknown" %} {{ _("Unknown") }} {% elif name == "VMWare" %} @@ -140,14 +156,14 @@ {% else %} {{ name }} {% end %} -
+
-
+
{% module ProgressBar(percentage, "success") %} -
+
{% end %} - {% end %} - +
+ {% end %}