diff options
author | Florian Eckert <fe@dev.tdt.de> | 2021-05-03 10:55:38 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2021-05-06 12:13:15 +0200 |
commit | 4fee871630dec3b6bfbfb6dadc1580f0e3edf830 (patch) | |
tree | c9dfdb598e20c569563ccaecb5ba0b04901a667d /applications/luci-app-mwan3/luasrc | |
parent | 3e5aacd760003ae744f8764f8f5bb069107e4b2a (diff) |
luci-app-mwan3: update status page for no tracked interfaces
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc')
-rw-r--r-- | applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm b/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm index 468aa12b41..9a4d85a706 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm @@ -46,6 +46,20 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface ); css = 'danger'; break; + case 'notracking': + state = '<%:No Tracking%>'; + if ((status.interfaces[iface].uptime) > 0) { + time = String.format( + '<div><strong>Uptime: </strong>%s</div>', + secondsToString(status.interfaces[iface].uptime) + ); + css = 'success'; + } + else { + time = '<div> </div>' + css = 'warning'; + } + break; default: state = '<%:Disabled%>'; time = '<div> </div>' |