summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorpmelange <isprotejesvalkata@gmail.com>2018-11-05 11:44:53 +0100
committerpmelange <isprotejesvalkata@gmail.com>2018-11-07 18:41:58 +0100
commit9e7557b60638cc2981f1a837ef0708a1677632b9 (patch)
tree522b56602cd2492ba4ba70c5422a932518a5ff78 /applications
parent6ef3a00f6bb8e7084aec6ff47375a77d77eee2d2 (diff)
luci-app-olsr: convert interfaces.htm to new json plugin
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-olsr/luasrc/view/status-olsr/interfaces.htm12
1 files changed, 6 insertions, 6 deletions
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 e3ccd0c23..7506f0702 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
<div class="tr cbi-section-table-row cbi-rowstyle-<%=i%> proto-<%=iface.proto%>">
<div class="td cbi-section-table-cell"><%=iface.name%></div>
- <div class="td cbi-section-table-cell"><%=iface.state%></div>
- <div class="td cbi-section-table-cell"><%=iface.olsrMTU%></div>
- <div class="td cbi-section-table-cell"><%=iface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%></div>
- <div class="td cbi-section-table-cell"><%=iface.ipv4Address or iface.ipv6Address%></div>
- <div class="td cbi-section-table-cell"><%=iface.netmask%></div>
- <div class="td cbi-section-table-cell"><%=iface.broadcast or iface.multicast%></div>
+ <div class="td cbi-section-table-cell"><%=iface.olsrInterface.up and luci.i18n.translate('up') or luci.i18n.translate('down')%></div>
+ <div class="td cbi-section-table-cell"><%=iface.olsrInterface.mtu%></div>
+ <div class="td cbi-section-table-cell"><%=iface.olsrInterface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%></div>
+ <div class="td cbi-section-table-cell"><%=iface.olsrInterface.ipAddress%></div>
+ <div class="td cbi-section-table-cell"><%=iface.olsrInterface.ipv4Address ~= '0.0.0.0' and iface.olsrInterface.ipv4Netmask%></div>
+ <div class="td cbi-section-table-cell"><%=iface.olsrInterface.ipv4Address ~= '0.0.0.0' and iface.olsrInterface.ipv4Broadcast or iface.olsrInterface.ipv6Multicast%></div>
</div>
<% i = ((i % 2) + 1)
end %>