projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-mwan3: remove css from javascript in overview_status_interface
[project/luci.git]
/
applications
/
luci-app-mwan3
/
luasrc
/
view
/
mwan
/
overview_status_interface.htm
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
6df3b3f
..
86b5ac6
100644
(file)
--- 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 = '';
for ( var iface in status.interfaces)
{
var state = '';
- var css = '';
switch (status.interfaces[iface].status)
{
case 'online':
state = '<%:Online (tracking active)%>';
switch (status.interfaces[iface].status)
{
case 'online':
state = '<%:Online (tracking active)%>';
- css = 'wanon';
break;
case 'notMonitored':
state = '<%:Online (tracking off)%>';
break;
case 'notMonitored':
state = '<%:Online (tracking off)%>';
- css = 'wanon';
break;
case 'offline':
state = '<%:Offline%>';
break;
case 'offline':
state = '<%:Offline%>';
- css = 'wanoff';
break;
default:
state = '<%:Disabled%>';
break;
default:
state = '<%:Disabled%>';
- css = 'wanoff';
break;
}
statusview += String.format(
break;
}
statusview += String.format(
- '<span class="%s"><strong>%s</strong><br />%s</span>',
- css,
- iface,
+ '<div><strong>Interface: </strong>%s</div>',
+ iface
+ );
+ statusview += String.format(
+ '<div><strong>Status: </strong>%s</div></br></br>',
state
);
}
state
);
}