Update my email addresses in the license headers
[project/luci.git] / applications / luci-app-olsr / luasrc / view / status-olsr / interfaces.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
4  Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
5  Licensed to the public under the Apache License 2.0.
6 -%>
7
8 <%
9 local i = 1
10 %>
11
12 <%+header%>
13
14 <h2><a id="content" name="content"><%:Interfaces%></a></h2>
15
16 <div id="togglebuttons"></div>
17
18 <fieldset class="cbi-section">
19         <legend><%:Overview of interfaces where OLSR is running%></legend>
20
21         <table class="cbi-section-table">
22                 <tr>
23                         <th class="cbi-section-table-cell"><%:Interface%></th>
24                         <th class="cbi-section-table-cell"><%:State%></th>
25                         <th class="cbi-section-table-cell"><%:MTU%></th>
26                         <th class="cbi-section-table-cell"><%:WLAN%></th>
27                         <th class="cbi-section-table-cell"><%:Source address%></th>
28                         <th class="cbi-section-table-cell"><%:Netmask%></th>
29                         <th class="cbi-section-table-cell"><%:Broadcast address%></th>
30                 </tr>
31
32                 <% for k, iface in ipairs(iface) do %>
33
34                 <tr class="cbi-section-table-row cbi-rowstyle-<%=i%> proto-<%=iface.proto%>">
35                         <td class="cbi-section-table-cell"><%=iface.name%></td>
36                         <td class="cbi-section-table-cell"><%=iface.state%></td>
37                         <td class="cbi-section-table-cell"><%=iface.olsrMTU%></td>
38                         <td class="cbi-section-table-cell"><%=iface.wireless and luci.i18n.translate('yes') or luci.i18n.translate('no')%></td>
39                         <td class="cbi-section-table-cell"><%=iface.ipv4Address or iface.ipv6Address%></td>
40                         <td class="cbi-section-table-cell"><%=iface.netmask%></td>
41                         <td class="cbi-section-table-cell"><%=iface.broadcast or iface.multicast%></td>
42                 </tr>
43                 <% i = ((i % 2) + 1)
44                 end %>
45         </table>
46 </fieldset>
47 <%+status-olsr/common_js%>
48 <%+footer%>
49
50