diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-03-16 18:08:13 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-03-16 18:08:13 +0000 |
commit | 97f0cf2996be5ce5ad58e22c35ea81336727db08 (patch) | |
tree | 0b7921d2986695ca3366d2e15684cfac0a9b4c4f /applications/luci-olsr/luasrc/view/status-olsr/interfaces.htm | |
parent | a0183b2f75a772366336671a818707df3dc04e79 (diff) |
applications/luci-olsr: Use jsoninfo instead of txtinfo as data source.
Diffstat (limited to 'applications/luci-olsr/luasrc/view/status-olsr/interfaces.htm')
-rw-r--r-- | applications/luci-olsr/luasrc/view/status-olsr/interfaces.htm | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/applications/luci-olsr/luasrc/view/status-olsr/interfaces.htm b/applications/luci-olsr/luasrc/view/status-olsr/interfaces.htm index 17090ff4aa..dd1a21ea6d 100644 --- a/applications/luci-olsr/luasrc/view/status-olsr/interfaces.htm +++ b/applications/luci-olsr/luasrc/view/status-olsr/interfaces.htm @@ -10,8 +10,6 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -$Id: mid.htm 5448 2009-10-31 15:54:11Z jow $ - -%> <% @@ -22,6 +20,8 @@ local i = 1 <h2><a id="content" name="content"><%:Interfaces%></a></h2> +<div id="togglebuttons"></div> + <fieldset class="cbi-section"> <legend><%:Overview of interfaces where OLSR is running%></legend> @@ -38,17 +38,20 @@ local i = 1 <% for k, iface in ipairs(iface) do %> - <tr class="cbi-section-table-row cbi-rowstyle-<%=i%>"> - <td class="cbi-section-table-cell"><%=iface.Name%></td> - <td class="cbi-section-table-cell"><%=iface.State%></td> - <td class="cbi-section-table-cell"><%=iface.MTU%></td> - <td class="cbi-section-table-cell"><%=iface.WLAN%></td> - <td class="cbi-section-table-cell"><%=iface["Src-Adress"]%></td> - <td class="cbi-section-table-cell"><%=iface.Mask%></td> - <td class="cbi-section-table-cell"><%=iface["Dst-Adress"]%></td> + <tr class="cbi-section-table-row cbi-rowstyle-<%=i%> proto-<%=iface.proto%>"> + <td class="cbi-section-table-cell"><%=iface.name%></td> + <td class="cbi-section-table-cell"><%=iface.state%></td> + <td class="cbi-section-table-cell"><%=iface.olsrMTU%></td> + <td class="cbi-section-table-cell"><%=iface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%></td> + <td class="cbi-section-table-cell"><%=iface.ipv4Address or iface.ipv6Address%></td> + <td class="cbi-section-table-cell"><%=iface.netmask%></td> + <td class="cbi-section-table-cell"><%=iface.broadcast or iface.multicast%></td> </tr> <% i = ((i % 2) + 1) end %> </table> </fieldset> +<%+status-olsr/common_js%> <%+footer%> + + |