From dcb041e3965d6cb706094720975267a9d61f74c0 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 1 Mar 2018 10:36:03 +0100 Subject: luci-app-mwan3: remove css from javascript in overview_status_interface Signed-off-by: Florian Eckert --- .../luasrc/view/mwan/overview_status_interface.htm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'applications/luci-app-mwan3/luasrc') 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 6df3b3f28..86b5ac696 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 @@ -15,30 +15,27 @@ XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_ for ( var iface in status.interfaces) { var state = ''; - var css = ''; switch (status.interfaces[iface].status) { case 'online': state = '<%:Online (tracking active)%>'; - css = 'wanon'; break; case 'notMonitored': state = '<%:Online (tracking off)%>'; - css = 'wanon'; break; case 'offline': state = '<%:Offline%>'; - css = 'wanoff'; break; default: state = '<%:Disabled%>'; - css = 'wanoff'; break; } statusview += String.format( - '%s
%s
', - css, - iface, + '
Interface: %s
', + iface + ); + statusview += String.format( + '
Status: %s


', state ); } -- cgit v1.2.3