From 64f4095c1cd5e0e22ecdf50c80b5e61199d9ddcd Mon Sep 17 00:00:00 2001 From: David Bauer <mail@david-bauer.net> Date: Sun, 9 Aug 2020 00:34:23 +0200 Subject: [PATCH] gluon-status-page: add wireless client count (#2085) This adds the wireless client count for 2.4GHz and 5 GHz radios to the status page. Previously, only the total client count advertised by the mesh protocol was visible. --- .../lib/gluon/status-page/view/status-page.html | 8 +++++++- package/gluon-status-page/i18n/de.po | 15 ++++++++++++--- .../gluon-status-page/i18n/gluon-status-page.pot | 12 +++++++++--- 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html b/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html index 6e4f36472..09bb6c3e3 100644 --- a/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html +++ b/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html @@ -142,7 +142,13 @@ <tr><th><%:RAM%></th><td><%= statistics('memory', 'memory') %></td></tr> <tr><th><%:Filesystem%></th><td><%= statistics('rootfs_usage', 'percent') %></td></tr> <tr><th><%:Gateway%></th><td><%= statistics('gateway') %><br /><%= statistics('gateway_nexthop', 'neighbour') %></td></tr> - <tr><th><%:Clients%></th><td><%= statistics('clients/total') %></td></tr> + </table> + + <h3><%:Clients%></h3> + <table> + <tr><th><%:Total%></th><td><%= statistics('clients/total') %></td></tr> + <tr><th><%:Wireless 2.4 GHz%></th><td><%= statistics('clients/wifi24') %></td></tr> + <tr><th><%:Wireless 5 GHz%></th><td><%= statistics('clients/wifi5') %></td></tr> </table> <h3><%:Traffic%></h3> diff --git a/package/gluon-status-page/i18n/de.po b/package/gluon-status-page/i18n/de.po index 5caebfde5..d979bc376 100644 --- a/package/gluon-status-page/i18n/de.po +++ b/package/gluon-status-page/i18n/de.po @@ -55,9 +55,6 @@ msgstr "Weitergeleitet" msgid "Gateway" msgstr "Gateway" -msgid "Gateway Nexthop" -msgstr "Gateway Nexthop" - msgid "IP address" msgstr "IP-Adresse" @@ -106,6 +103,9 @@ msgstr "Site" msgid "Status" msgstr "Status" +msgid "Total" +msgstr "Gesamt" + msgid "Traffic" msgstr "" @@ -115,6 +115,12 @@ msgstr "Gesendet" msgid "Uptime" msgstr "Laufzeit" +msgid "Wireless 2.4 GHz" +msgstr "" + +msgid "Wireless 5 GHz" +msgstr "" + msgid "connected" msgstr "verbunden" @@ -126,3 +132,6 @@ msgstr "aktiviert" msgid "not connected" msgstr "nicht verbunden" + +#~ msgid "Gateway Nexthop" +#~ msgstr "Gateway Nexthop" diff --git a/package/gluon-status-page/i18n/gluon-status-page.pot b/package/gluon-status-page/i18n/gluon-status-page.pot index e471e8789..2aa4b4c45 100644 --- a/package/gluon-status-page/i18n/gluon-status-page.pot +++ b/package/gluon-status-page/i18n/gluon-status-page.pot @@ -46,9 +46,6 @@ msgstr "" msgid "Gateway" msgstr "" -msgid "Gateway Nexthop" -msgstr "" - msgid "IP address" msgstr "" @@ -97,6 +94,9 @@ msgstr "" msgid "Status" msgstr "" +msgid "Total" +msgstr "" + msgid "Traffic" msgstr "" @@ -106,6 +106,12 @@ msgstr "" msgid "Uptime" msgstr "" +msgid "Wireless 2.4 GHz" +msgstr "" + +msgid "Wireless 5 GHz" +msgstr "" + msgid "connected" msgstr "" -- GitLab