From 64f4095c1cd5e0e22ecdf50c80b5e61199d9ddcd Mon Sep 17 00:00:00 2001 From: David Bauer 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 6e4f3647..09bb6c3e 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 @@ <%:RAM%><%= statistics('memory', 'memory') %> <%:Filesystem%><%= statistics('rootfs_usage', 'percent') %> <%:Gateway%><%= statistics('gateway') %>
<%= statistics('gateway_nexthop', 'neighbour') %> - <%:Clients%><%= statistics('clients/total') %> + + +

<%:Clients%>

+ + + +
<%:Total%><%= statistics('clients/total') %>
<%:Wireless 2.4 GHz%><%= statistics('clients/wifi24') %>
<%:Wireless 5 GHz%><%= statistics('clients/wifi5') %>

<%:Traffic%>

diff --git a/package/gluon-status-page/i18n/de.po b/package/gluon-status-page/i18n/de.po index 5caebfde..d979bc37 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 e471e878..2aa4b4c4 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 ""