summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm14
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:&nbsp;</strong>%s</div>',
+ secondsToString(status.interfaces[iface].uptime)
+ );
+ css = 'success';
+ }
+ else {
+ time = '<div>&nbsp;</div>'
+ css = 'warning';
+ }
+ break;
default:
state = '<%:Disabled%>';
time = '<div>&nbsp;</div>'