48823b5bc1335c11e44f2d403b91aefd46b853a9
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / mid.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5 Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14
15 -%>
16 <%
17 local i = 1
18 %>
19
20 <%+header%>
21 <h2><a id="content" name="content"><%:Active MID announcements%></a></h2>
22
23 <fieldset class="cbi-section">
24 <legend><%:Overview of known multiple interface announcements%></legend>
25 <table class="cbi-section-table">
26 <tr class="cbi-section-table-titles">
27 <th class="cbi-section-table-cell"><%:OLSR node%></th>
28 <th class="cbi-section-table-cell" ><%:Secondary OLSR interfaces%></th>
29 </tr>
30
31 <% for k, mid in ipairs(mids) do %>
32
33 <tr class="cbi-section-table-row cbi-rowstyle-<%=i%>">
34 <td class="cbi-section-table-cell"><a href="http://<%=mid["IP address"]%>/cgi-bin-status.html"><%=mid["IP address"]%></a></td>
35 <td class="cbi-section-table-cell"><%=mid.Aliases%></td>
36 </tr>
37
38 <% i = ((i % 2) + 1)
39 end %>
40 </table>
41 </fieldset>
42 <%+footer%>