From: pmelange Date: Mon, 5 Nov 2018 10:44:53 +0000 (+0100) Subject: luci-app-olsr: convert interfaces.htm to new json plugin X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9e7557b60638cc2981f1a837ef0708a1677632b9;p=project%2Fluci.git luci-app-olsr: convert interfaces.htm to new json plugin Signed-off-by: pmelange --- 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 e3ccd0c23d..7506f07029 100644 --- a/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm +++ b/applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm @@ -33,12 +33,12 @@ local i = 1
<%=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%>
+
<%=iface.olsrInterface.up and luci.i18n.translate('up') or luci.i18n.translate('down')%>
+
<%=iface.olsrInterface.mtu%>
+
<%=iface.olsrInterface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%>
+
<%=iface.olsrInterface.ipAddress%>
+
<%=iface.olsrInterface.ipv4Address ~= '0.0.0.0' and iface.olsrInterface.ipv4Netmask%>
+
<%=iface.olsrInterface.ipv4Address ~= '0.0.0.0' and iface.olsrInterface.ipv4Broadcast or iface.olsrInterface.ipv6Multicast%>
<% i = ((i % 2) + 1) end %>