From: Rico Hoppe Date: Fri, 1 Dec 2023 20:54:33 +0000 (+0000) Subject: fireinfo/profile: updated the page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b27a29d28853a2d4cfb10a79e7e4eb8583b8c4d;p=ipfire.org.git fireinfo/profile: updated the page --- diff --git a/src/templates/fireinfo/profile.html b/src/templates/fireinfo/profile.html index 6c0da12e..d77e044e 100644 --- a/src/templates/fireinfo/profile.html +++ b/src/templates/fireinfo/profile.html @@ -2,154 +2,198 @@ {% block title %}{{ _("Profile %s") % profile.public_id }}{% end block %} -{% block content %} -
-
-
-
-

{{ _("Profile") }}

-
{{ profile.public_id }}
-
+{% block container %} +
+
+
+ + +

{{ _("Profile") }}

+

{{ profile.public_id }}

-
-
-
-
-
-
- {{ _("Running %s") % profile.system.release }} -
- - - {{ _("Last update %s") % locale.format_date(profile.last_updated_at) }} - -
- -
- {% for zone in profile.network %} - {% if zone == "red" %} - {{ _("RED") }} - {% elif zone == "green" %} - {{ _("GREEN") }} - {% elif zone == "orange" %} - {{ _("ORANGE") }} - {% elif zone == "blue" %} - {{ _("BLUE") }} - {% end %} - {% end %} -
-
+
+
+
+

+ {{ _("Running %s") % profile.system.release }} +

-
- {% if profile.is_virtual() %} -
{{ _("Hypervisor") }}
-
- {% if profile.hypervisor == "VMWare" %} - {{ _("VMware") }} - {% elif profile.hypervisor is None %} - {{ _("Unknown") }} - {% else %} - {{ profile.hypervisor }} - {% end %} -
- {% elif profile.system %} -
{{ _("System") }}
-
- {% if profile.system.vendor %} - {{ profile.system.vendor }} - {% end %} +
+ {{ _("Last update %s") % locale.format_date(profile.last_updated_at) }} +
+
- {% if profile.system.vendor and profile.system.model %} - ‐ - {% end %} + {% for zone in profile.network %} + {% if zone == "red" %} + {{ _("RED") }} + {% elif zone == "green" %} + {{ _("GREEN") }} + {% elif zone == "orange" %} + {{ _("ORANGE") }} + {% elif zone == "blue" %} + {{ _("BLUE") }} + {% end %} + {% end %} +
+
+
- {% if profile.system.model %} - {{ profile.system.model }} - {% end %} - +
+
+
+ {% if profile.is_virtual() %} +
+
{{ _("Hypervisor") }}
+
+ {% if profile.hypervisor == "VMWare" %} + {{ _("VMware") }} + {% elif profile.hypervisor is None %} + {{ _("Unknown") }} + {% else %} + {{ profile.hypervisor }} {% end %} - - {% if profile.processor %} -
{{ _("Processor") }}
-
-

{{ profile.processor }}

- -
    - {% for cap, available in profile.processor.capabilities %} -
  • - - {% if cap == "64bit" %} - {{ _("64 bit") }} - {% elif cap == "aes" %} - {{ _("AES-NI") }} - {% elif cap == "nx" %} - {{ _("NX") }} - {% elif cap == "pae" %} - {{ _("PAE") }} - {% elif cap == "rdrand" %} - {{ _("RDRAND") }} - {% elif cap == "virt" %} - {{ _("VT-x/AMD-V") }} - {% end %} - -
  • - {% end %} -
-
+
+
+ {% elif profile.system %} +
+
{{ _("System") }}
+
+ {% if profile.system.vendor %} + {{ profile.system.vendor }} {% end %} - {% if profile.memory %} -
{{ _("Memory") }}
-
- {{ format_size(profile.memory) }} -
+ {% if profile.system.vendor and profile.system.model %} + ‐ {% end %} - {% if profile.system.storage %} -
{{ _("Storage") }}
-
- {{ format_size(profile.system.storage) }} -
+ {% if profile.system.model %} + {{ profile.system.model }} {% end %} +
+
+ {% end %} +
- {% if profile.location %} -
{{ _("Location") }}
-
- {{ profile.location_string }} -
+
+ {% if profile.processor %} +
+
{{ _("Processor") }}
+
+

{{ profile.processor }}

+ + {% for cap, available in profile.processor.capabilities %} + + {% if cap == "64bit" %} + {{ _("64 bit") }} + {% elif cap == "aes" %} + {{ _("AES-NI") }} + {% elif cap == "nx" %} + {{ _("NX") }} + {% elif cap == "pae" %} + {{ _("PAE") }} + {% elif cap == "rdrand" %} + {{ _("RDRAND") }} + {% elif cap == "virt" %} + {{ _("VT-x/AMD-V") }} + {% end %} + {% end %} +
+
+ {% end %} +
- {% if profile.system.language %} -
{{ _("Language") }}
-
- {{ format_language_name(profile.system.language) }} -
- {% end %} - +
+ {% if profile.memory %} +
+
{{ _("Memory") }}
+
+ {{ format_size(profile.memory) }} +
+ {% end %} +
- {% if profile.devices %} - {% module FireinfoDeviceTable([d for d in profile.devices if d.is_showable()], embedded=True) %} - {% end %} -
+
+ {% if profile.system.storage %} +
+
{{ _("Storage") }}
+
+ {{ format_size(profile.system.storage) }} +
+
+ {% end %} +
-
{{ _("Signature images") }}
+
+ {% if profile.location %} +
+
{{ _("Location") }}
+
+ {{ profile.location_string }} +
+
+ {% end %} +
- +
+ {% if profile.system.language %} +
+
{{ _("Language") }}
+
+ {{ format_language_name(profile.system.language) }} +
+
+ {% end %}
- + + +
+ {% if profile.devices %} + {% module FireinfoDeviceTable([d for d in profile.devices if d.is_showable()], embedded=True) %} + {% end %} +
+ +
+
{{ _("Signature images") }}
+ + +
{% end block %}