From 140172cfc3e13f3445c2c19ccb6ffa3cba7daf56 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 19 Feb 2013 12:45:45 +0100 Subject: [PATCH] Forgot to add fireinfo templates. --- templates/fireinfo/base.html | 10 + templates/fireinfo/index.html | 58 ++++++ templates/fireinfo/model-detail.html | 31 +++ templates/fireinfo/profile-detail.html | 234 +++++++++++++++++++++++ templates/fireinfo/profile-notfound.html | 43 +++++ templates/fireinfo/stats-admin.html | 27 +++ templates/fireinfo/stats-cpu-flags.html | 78 ++++++++ templates/fireinfo/stats-cpus.html | 55 ++++++ templates/fireinfo/stats-geo.html | 43 +++++ templates/fireinfo/stats-memory.html | 18 ++ templates/fireinfo/stats-network.html | 25 +++ templates/fireinfo/stats-oses.html | 39 ++++ templates/fireinfo/stats-virtual.html | 48 +++++ templates/fireinfo/stats.html | 145 ++++++++++++++ templates/fireinfo/vendor-detail.html | 26 +++ 15 files changed, 880 insertions(+) create mode 100644 templates/fireinfo/base.html create mode 100644 templates/fireinfo/index.html create mode 100644 templates/fireinfo/model-detail.html create mode 100644 templates/fireinfo/profile-detail.html create mode 100644 templates/fireinfo/profile-notfound.html create mode 100644 templates/fireinfo/stats-admin.html create mode 100644 templates/fireinfo/stats-cpu-flags.html create mode 100644 templates/fireinfo/stats-cpus.html create mode 100644 templates/fireinfo/stats-geo.html create mode 100644 templates/fireinfo/stats-memory.html create mode 100644 templates/fireinfo/stats-network.html create mode 100644 templates/fireinfo/stats-oses.html create mode 100644 templates/fireinfo/stats-virtual.html create mode 100644 templates/fireinfo/stats.html create mode 100644 templates/fireinfo/vendor-detail.html diff --git a/templates/fireinfo/base.html b/templates/fireinfo/base.html new file mode 100644 index 00000000..eb14a002 --- /dev/null +++ b/templates/fireinfo/base.html @@ -0,0 +1,10 @@ +{% extends "../base.html" %} + +{% block header %} +
+
+

{{ _("Fireinfo") }}

+

{{ _("A hardware data collection tool for IPFire") }}

+
+
+{% end header %} diff --git a/templates/fireinfo/index.html b/templates/fireinfo/index.html new file mode 100644 index 00000000..e43b62a5 --- /dev/null +++ b/templates/fireinfo/index.html @@ -0,0 +1,58 @@ +{% extends "base.html" %} + +{% block title %}Fireinfo{% end block %} + +{% block body %} +
+
+ {% if lang == "de" %} +

+ Fireinfo ist ein Tool, welches anonym Informationen + über die in IPFire-Systemen verbaute Hardware sammelt. +

+

+ Diese Daten sollen den Entwicklern helfen zu erkennen, welche + Hardware am häufigsten eingesetzt wird und sind auch hilfreich + um Hardware-Probleme ausfindig zu machen. +

+ {% else %} +

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

+

+ These data should help the developers to learn + which hardware is used most often to run an IPFire system, but is also + handy when it comes to debugging hardware problems. +

+ {% end %} +
+
+
+ +
+
+ {% if lang == "de" %} +

+ Bitte geben Sie die Profil-ID von ihrem System ein, welche + Sie auf der Fireinfo-Seite des Webinterfaces finden können: +

+ {% else %} +

+ Please enter the profile ID of your system, which can be found + on the fireinfo page on the web interface, to see your profile: +

+ {% end %} + +
+ +
+
+ +
+ {% raw xsrf_form_html() %} +
+
+
+{% end block %} diff --git a/templates/fireinfo/model-detail.html b/templates/fireinfo/model-detail.html new file mode 100644 index 00000000..cb0789cc --- /dev/null +++ b/templates/fireinfo/model-detail.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} + +{% block title %}{{ vendor_name }} - {{ model_name or model_id }}{% end block %} + +{% block body %} + + +

+ {{ _("This device is installed on approximately %.2f%% of all systems.") % percentage }} +

+ +

{{ _("Feedback") }}

+ {% if lang == "de" %} +

+ Im IPFire-Wiki befindet sich eine Sektion mit Kommentaren und Ratschlägen + zu dieser Hardware. Diese werden von der Community gesammelt. +

+ {% else %} +

+ In the IPFire wiki is a section that keeps comments or instructions on + the hardware. These information is maintained by the community. +

+ {% end %} + +

+ {{ _("Go to the wiki") }}: + {{ vendor_name }} - {{ model_name or model_id }} +

+{% end block %} diff --git a/templates/fireinfo/profile-detail.html b/templates/fireinfo/profile-detail.html new file mode 100644 index 00000000..09ab7130 --- /dev/null +++ b/templates/fireinfo/profile-detail.html @@ -0,0 +1,234 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Profile") }} {{ profile.public_id }}{% end block %} + +{% block body %} + + +
+
+

{{ _("Operating system") }}

+ + + + + + + + + + + + + +
+ {{ _("Version") }} + + {{ profile.release }} +
+ {{ _("Architecture") }} + + {{ profile.cpu.arch }} +
+ {{ _("Kernel version") }} + + {{ profile.kernel }} +
+
+ +
+ {% if profile.hypervisor %} +

{{ _("Hypervisor") }}

+

+ {{ _("This machine is running in a virtual environment.") }} +

+ + + + + + + + + + +
+ {{ _("Vendor") }} + + {{ profile.hypervisor.vendor }} +
+ {{ _("Type") }} + + {{ profile.hypervisor.type }} +
+ {% else %} +

{{ _("Hardware vendor") }}

+ + + + + + + + + +
+ {{ _("Vendor") }} + + {{ profile.vendor or _("Unknown") }} +
+ {{ _("Model") }} + + {{ profile.model or _("Unknown") }} +
+ {% end %} +
+
+ +
+ + {% if profile.network %} +
+
+

{{ _("Network") }}

+

+ {{ _("Enabled network zones") }} + + {% for zone in ("GREEN", "RED", "BLUE", "ORANGE") %} + {% if profile.network.has_zone(zone.lower()) %} + {% if zone == "GREEN" %} + {{ _(zone) }} + {% elif zone == "RED" %} + {{ _(zone) }} + {% elif zone == "ORANGE" %} + {{ _(zone) }} + {% elif zone == "BLUE" %} + {{ _(zone) }} + {% end %} + {% end %} + {% end %} +

+
+
+ {% end %} + +
+ +

{{ _("Hardware") }}

+
+
+ + + + + + + + + + + + + + + + + + + + + {% if profile.cpu.vendor != "ARM" %} + + + + + {% end %} +
+ {{ _("CPU") }} +
+ {{ _("Vendor") }} + + {{ profile.cpu.vendor }} +
+ {{ _("Model") }} + + {{ profile.cpu.model_string or _("Not available") }} +
+ {{ _("Cores") }} + + {{ profile.cpu.count }} +
+ {{ _("Speed") }} + + {{ profile.cpu.speed }} MHz + {% if profile.cpu.speed != profile.cpu.bogomips %} + (Bogomips: {{ profile.cpu.bogomips }}) + {% end %} +
+ {{ _("Supported features") }} + + {% if profile.cpu.capable_64bit %} + {{ _("64 bit capable") }} + {% end %} + + {% if profile.cpu.capable_pae %} + {{ _("PAE capable") }} + {% end %} + + {% if profile.cpu.capable_virt %} + {{ _("VT-x/AMD-V") }} + {% end %} +
+
+ +
+ + + + + + + + + +
+ {{ _("Memory size") }} + + {{ format_size(profile.memory) }} +
+ {{ _("System disk size") }} + + {{ format_size(profile.root_size) }} +
+
+
+ +
+ + {% if profile.devices %} +

{{ _("Peripherial devices") }}

+ {% module StasyDeviceTable(profile.devices) %} +
+ {% end %} + +

{{ _("Signature images") }}

+ + +
+

+ {{ _("Last update") }}: {{ locale.format_date(profile.updated) }} +

+
+{% end block %} diff --git a/templates/fireinfo/profile-notfound.html b/templates/fireinfo/profile-notfound.html new file mode 100644 index 00000000..40757b3d --- /dev/null +++ b/templates/fireinfo/profile-notfound.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Profile not found") }}}{% end block %} + +{% block body %} + {{ _( + + +
+
+

+ {% if lang == "de" %} + Es wurden keine Daten für das Profil {{ profile_id }} + gefunden. + {% else %} + There was no profile data found for profile {{ profile_id }}. + {% end %} +

+

+ {% if lang == "de" %} + Der Eigentümer dieses Profils hat möglicherweise der Veröffentlichung + der Daten nicht zugestimmt oder diese abgeschaltet. + {% else %} + The profile owner has probably not submitted any data + or recently disabled the transmission. + {% end %} +

+

+ {% if lang == "de" %} + Falls dieses Profil Ihr eigenes ist, so können Sie die Veröffentlichung + im Web-Interface + einschalten. + {% else %} + If this is your own profile, you can + enable + the submission on the web user interface. + {% end %} +

+
+
+{% end block %} diff --git a/templates/fireinfo/stats-admin.html b/templates/fireinfo/stats-admin.html new file mode 100644 index 00000000..2e89c7eb --- /dev/null +++ b/templates/fireinfo/stats-admin.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Admin") }}{% end block %} + +{% block body %} +

Need a headline

+ + + + + + + + + + +
+ {{ _("Sending profiles") }} + + {{ profiles_count }} / {{ profiles_count_all }} +
+ {{ _("Archive size") }} + + {{ archives_count }} +
+{% end block %} + diff --git a/templates/fireinfo/stats-cpu-flags.html b/templates/fireinfo/stats-cpu-flags.html new file mode 100644 index 00000000..e45fc8c2 --- /dev/null +++ b/templates/fireinfo/stats-cpu-flags.html @@ -0,0 +1,78 @@ +{% extends "base.html" %} + +{% block title %}{{ _("CPU flags") }}{% end block %} + +{% block body %} + + +
+
+ {% if lang == "de" %} +

+ Diese Seite untersucht CPUs und ihre Funktionalitäten. + Anhand dieser Graphen können die Entwickler einige Entscheidungen + über die Betriebssystemkonfiguration treffen. +

+ {% else %} +

+ On this page we will examine which CPUs provide a specific feature. + These charts will help the IPFire developers to make decisions about + the operating system configuration. +

+ {% end %} +
+
+ +
+
+

{{ _("CPUs that support 64 bits") }}

+ {% if lang == "de" %} +

+ Wieviele Prozessoren unterstützen die 64-Bit-Architektur? +

+ {% else %} +

+ How many CPUs support the 64-bit architecture? +

+ {% end %} + {% module StasyTable(cpus_lm, sortby="percentage") %} +
+
+ +
+
+

{{ _("CPUs with PAE") }}

+ {% if lang == "de" %} +

+ Diese Grafik zeigt uns wieviele Prozessoren das PAE-Flag unterstützen. +

+ {% else %} +

+ This chart shows us which CPUs have got the PAE flag. +

+ {% end %} + {% module StasyTable(cpus_pae, sortby="percentage") %} +
+
+ +
+
+

{{ _("CPUs that support virtualization") }}

+ {% if lang == "de" %} +

+ Für zukünftige Planungen ist es nötig zu wissen, ob genug + Hardware mit Virtualisierungsunterstützung vorhanden ist + (Intels VT-x and AMD-V). +

+ {% else %} +

+ For future planning it is important to know if there is enough hardware + support for virtualization like VT-x and AMD-V. +

+ {% end %} + {% module StasyTable(cpus_virt, sortby="percentage") %} +
+
+{% end block %} diff --git a/templates/fireinfo/stats-cpus.html b/templates/fireinfo/stats-cpus.html new file mode 100644 index 00000000..b637767d --- /dev/null +++ b/templates/fireinfo/stats-cpus.html @@ -0,0 +1,55 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Processors") }}{% end block %} + +{% block body %} + + +
+ +
+ +
+
+

{{ _("Vendors") }}

+ {% if lang == "de" %} +

+ Eine Aufstellung über den beliebtesten Prozessor-Hersteller: +

+ {% else %} +

+ This chart shows us which vendors is the most favorite for the CPUs + used in IPFire. +

+ {% end %} + {% module StasyTable(cpu_vendors, sortby="percentage") %} +
+
+ +
+
+

{{ _("Speed") }}

+

+ {{ _("The average speed of all systems in the database is: %.2f MHz.") % average_speed }} +
+ {{ _("All together, there are %s bogomips out there.") % locale.friendly_number(bogomips) }} +

+ {% module StasyTable(cpu_speeds) %} +
+
+ +
+
+

{{ _("CPU core counter") }}

+

+ {{ _("See a breakdown of the CPU cores that are installed on the IPFire systems.") }} +

+ {% module StasyCPUCoreTable(cpu_cores) %} +
+
+{% end block %} diff --git a/templates/fireinfo/stats-geo.html b/templates/fireinfo/stats-geo.html new file mode 100644 index 00000000..128d054f --- /dev/null +++ b/templates/fireinfo/stats-geo.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Geo locations") }}{% end block %} + +{% block body %} + + +
+
+ {% if lang == "de" %} +

+ Dieses Diagramm zeigt in welchem Land IPFire am häufigsten + eingesetzt wird. +

+ {% else %} +

+ This chart shows us in which country IPFire is running. +

+ {% end %} + {% module StasyGeoTable(geo_locations) %} +
+
+ +
+
+

{{ _("Language selection") }}

+ {% if lang == "de" %} +

+ Dies gibt einen Überblick über die Häufigkeit der ausgewählten + Sprachen. +

+ {% else %} +

+ This will give a short overview about what languages are configured + on the IPFire webinterface. +

+ {% end %} + {% module StasyTable(languages, sortby="percentage", locale=True) %} +
+
+{% end block %} diff --git a/templates/fireinfo/stats-memory.html b/templates/fireinfo/stats-memory.html new file mode 100644 index 00000000..1f600e5e --- /dev/null +++ b/templates/fireinfo/stats-memory.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Memory") }}{% end block %} + +{% block body %} + + +
+
+

+ {{ _("The average amount of memory of all systems in the database is: %.2f MB.") % average_memory }} +

+ {% module StasyTable(memory) %} +
+
+{% end block %} diff --git a/templates/fireinfo/stats-network.html b/templates/fireinfo/stats-network.html new file mode 100644 index 00000000..cb2abacb --- /dev/null +++ b/templates/fireinfo/stats-network.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Network") }}{% end block %} + +{% block body %} + + +
+
+ {% if lang == "de" %} +

+ Diese Grafik zeigt uns die beliebteste Netzwerkkonfiguration. +

+ {% else %} +

+ This chart shows us which is the most favourite network configuration. +

+ {% end %} + {% module StasyTable(network_zones, sortby="percentage", percentage=True) %} +
+
+{% end block %} + diff --git a/templates/fireinfo/stats-oses.html b/templates/fireinfo/stats-oses.html new file mode 100644 index 00000000..da5961ee --- /dev/null +++ b/templates/fireinfo/stats-oses.html @@ -0,0 +1,39 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Operating system") }}{% end block %} + +{% block body %} + + +
+
+ {% module StasyTable(releases, sortby="percentage") %} +
+
+ +
+
+

{{ _("Architectures") }}

+ {% module StasyTable(arches, sortby="percentage") %} +
+
+ +
+
+

{{ _("Kernels") }}

+ {% if lang == "de" %} +

+ Dies zeigt uns, welche Kernel am häufigsten verwendet werden. +

+ {% else %} +

+ This chart gives an overview about what kernel the machines are + runnning. +

+ {% end %} + {% module StasyTable(kernels, sortby="percentage") %} +
+
+{% end block %} diff --git a/templates/fireinfo/stats-virtual.html b/templates/fireinfo/stats-virtual.html new file mode 100644 index 00000000..da5bd3b6 --- /dev/null +++ b/templates/fireinfo/stats-virtual.html @@ -0,0 +1,48 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Virtualization") }}{% end block %} + +{% block body %} + + +
+
+ {% if lang == "de" %} +

+ IPFire läuft hervorragend in virtuellen Umgebungen. +

+

+ Dieser Graph gibt Aufschluss darüber, wieviele Systeme + virtuell laufen. +

+ {% else %} +

+ IPFire is running very well in a virtual environment. +

+

+ See this chart to get a clue about how many machines are running + virtually. +

+ {% end %} + {% module StasyTable(is_virtual, sortby="percentage") %} +
+
+ +
+
+

{{ _("Hypervisors") }}

+ {% if lang == "de" %} +

+ Diese Systeme werden eingesetzt um IPFire zu virtualisieren: +

+ {% else %} +

+ This is a list of all hypervisor vendors that IPFire is running on. +

+ {% end %} + {% module StasyTable(hypervisor_vendors, sortby="percentage") %} +
+
+{% end block %} diff --git a/templates/fireinfo/stats.html b/templates/fireinfo/stats.html new file mode 100644 index 00000000..b13eab6a --- /dev/null +++ b/templates/fireinfo/stats.html @@ -0,0 +1,145 @@ +{% extends "base.html" %} + +{% block title %}{{ _("Statistics") }}{% end block %} + +{% block body %} + + + +{% end block %} diff --git a/templates/fireinfo/vendor-detail.html b/templates/fireinfo/vendor-detail.html new file mode 100644 index 00000000..aaab95b2 --- /dev/null +++ b/templates/fireinfo/vendor-detail.html @@ -0,0 +1,26 @@ +{% extends "base.html" %} + +{% block title %}{{ vendor_name }}{% end block %} + +{% block body %} + + +
+
+ {% if lang == "de" %} +

+ Dies ist eine Aufstellung über alle Geräte von + {{ vendor_name }} in der Datenbank. + {% else %} +

+ This is a list of all devices this database knows about from + {{ vendor_name }}. +

+ {% end %} + + {% module StasyDeviceTable(models) %} +
+
+{% end block %} -- 2.47.3