summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-08-18 08:23:43 +0200
committerGitHub <noreply@github.com>2020-08-18 08:23:43 +0200
commit24c33557e02b12c0a75247bb9313f8d316bbcef9 (patch)
treeb2b760d32d1539961067b96cbc47d6c1bff6143b
parent91c867c0440ad35f8b35ccc900ded0b66ea3e1d8 (diff)
parentd92b20febdb9566d31724cda701970baeb366f99 (diff)
Merge pull request #4361 from aaronjg/bugfix/mwan3-status-formatting
luci-app-mwan3: fix interface grid
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm9
1 files changed, 5 insertions, 4 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 3cb0ca224..468aa12b4 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
@@ -33,7 +33,7 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface
case 'online':
state = '<%:Online%>';
time = String.format(
- '<div><strong>Uptime: </strong>%s</div>',
+ '<div><strong>Uptime:&nbsp;</strong>%s</div>',
secondsToString(status.interfaces[iface].online)
);
css = 'success';
@@ -41,13 +41,14 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface
case 'offline':
state = '<%:Offline%>';
time = String.format(
- '<div><strong>Downtime: </strong>%s</div>',
+ '<div><strong>Downtime:&nbsp;</strong>%s</div>',
secondsToString(status.interfaces[iface].offline)
);
css = 'danger';
break;
default:
state = '<%:Disabled%>';
+ time = '<div>&nbsp;</div>'
css = 'warning';
break;
}
@@ -56,11 +57,11 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface
css
);
statusview += String.format(
- '<div><strong>Interface: </strong>%s</div>',
+ '<div><strong>Interface:&nbsp;</strong>%s</div>',
iface
);
statusview += String.format(
- '<div><strong>Status: </strong>%s</div>',
+ '<div><strong>Status:&nbsp;</strong>%s</div>',
state
);
if (time)