From 067d7dc9f708d5ebeda1072fb6dc82e960de0d81 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 28 May 2018 14:57:54 +0200 Subject: treewide: convert HTML tables to div Mostly convert HTML tables to div based markup to allow for easier styling in the future. Also change JS accessor code accordingly. Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/status-olsr/interfaces.htm | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm') diff --git a/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm b/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm index 81d0a3dd3..e3ccd0c23 100644 --- a/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm +++ b/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm @@ -18,31 +18,31 @@ local i = 1
<%:Overview of interfaces where OLSR is running%> - - - - - - - - - - +
+
+
<%:Interface%>
+
<%:State%>
+
<%:MTU%>
+
<%:WLAN%>
+
<%:Source address%>
+
<%:Netmask%>
+
<%:Broadcast address%>
+
<% for k, iface in ipairs(iface) do %> -
- - - - - - - - +
+
<%=iface.name%>
+
<%=iface.state%>
+
<%=iface.olsrMTU%>
+
<%=iface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%>
+
<%=iface.ipv4Address or iface.ipv6Address%>
+
<%=iface.netmask%>
+
<%=iface.broadcast or iface.multicast%>
+
<% i = ((i % 2) + 1) end %> -
<%:Interface%><%:State%><%:MTU%><%:WLAN%><%:Source address%><%:Netmask%><%:Broadcast address%>
<%=iface.name%><%=iface.state%><%=iface.olsrMTU%><%=iface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%><%=iface.ipv4Address or iface.ipv6Address%><%=iface.netmask%><%=iface.broadcast or iface.multicast%>
+
<%+status-olsr/common_js%> <%+footer%> -- cgit v1.2.3