Revert gluon-status-page gateway_nexthop changes

This reverts commits
- caf2dd037b.
- 07ebac6a49
- 55eff45f96

I accidentally pushed these commits as I had them lying around on a
dirty checkout I did testing on.
This commit is contained in:
Martin Weinelt 2019-12-01 16:22:34 +01:00
parent e7d9a2749b
commit 580b7357d5
4 changed files with 1 additions and 24 deletions

View File

@ -135,7 +135,7 @@
<tr><th><%:Load average%></th><td><%= statistics('loadavg', 'decimal') %></td></tr> <tr><th><%:Load average%></th><td><%= statistics('loadavg', 'decimal') %></td></tr>
<tr><th><%:RAM%></th><td><%= statistics('memory', 'memory') %></td></tr> <tr><th><%:RAM%></th><td><%= statistics('memory', 'memory') %></td></tr>
<tr><th><%:Filesystem%></th><td><%= statistics('rootfs_usage', 'percent') %></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><%:Gateway%></th><td><%= statistics('gateway') %></td></tr>
<tr><th><%:Clients%></th><td><%= statistics('clients/total') %></td></tr> <tr><th><%:Clients%></th><td><%= statistics('clients/total') %></td></tr>
</table> </table>

View File

@ -55,9 +55,6 @@ msgstr "Weitergeleitet"
msgid "Gateway" msgid "Gateway"
msgstr "Gateway" msgstr "Gateway"
msgid "Gateway Nexthop"
msgstr "Gateway Nexthop"
msgid "IP address" msgid "IP address"
msgstr "IP-Adresse" msgstr "IP-Adresse"

View File

@ -46,9 +46,6 @@ msgstr ""
msgid "Gateway" msgid "Gateway"
msgstr "" msgstr ""
msgid "Gateway Nexthop"
msgstr ""
msgid "IP address" msgid "IP address"
msgstr "" msgstr ""

View File

@ -112,20 +112,6 @@
'bytes': function(bytes) { 'bytes': function(bytes) {
return prettyBytes(bytes); return prettyBytes(bytes);
}, },
'neighbour': function(addr) {
if (!addr)
return '';
for (var i in interfaces) {
var iface = interfaces[i];
var neigh = iface.get_neigh(addr);
if (!neigh)
continue;
return 'via ' + neigh.get_hostname() + ' (' + i + ')';
}
return 'via ' + addr + ' (unknown iface)';
}
} }
@ -596,9 +582,6 @@
} }
return { return {
'get_hostname': function() {
return hostname.textContent;
},
'update_nodeinfo': function(nodeinfo) { 'update_nodeinfo': function(nodeinfo) {
var addr = choose_address(nodeinfo.network.addresses); var addr = choose_address(nodeinfo.network.addresses);
if (addr) { if (addr) {