From d92b20febdb9566d31724cda701970baeb366f99 Mon Sep 17 00:00:00 2001 From: Aaron Goodman Date: Mon, 17 Aug 2020 20:36:38 -0400 Subject: luci-app-mwan3: fix interface grid Interface grid can become misaligned due to varying number of lines. Use non-breaking spaces to ensure all interface boxes are three lines long. Signed-off-by: Aaron Goodman --- .../luasrc/view/mwan/overview_status_interface.htm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'applications/luci-app-mwan3/luasrc/view/mwan') 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 3cb0ca224e..468aa12b41 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( - '
Uptime: %s
', + '
Uptime: %s
', 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( - '
Downtime: %s
', + '
Downtime: %s
', secondsToString(status.interfaces[iface].offline) ); css = 'danger'; break; default: state = '<%:Disabled%>'; + time = '
 
' css = 'warning'; break; } @@ -56,11 +57,11 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface css ); statusview += String.format( - '
Interface: %s
', + '
Interface: %s
', iface ); statusview += String.format( - '
Status: %s
', + '
Status: %s
', state ); if (time) -- cgit v1.2.3