Globally reduce copyright headers
[project/luci.git] / applications / luci-app-olsr / luasrc / view / status-olsr / mid.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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 <h2><a id="content" name="content"><%:Active MID announcements%></a></h2>
14
15 <div id="togglebuttons"></div> 
16 <fieldset class="cbi-section">
17         <legend><%:Overview of known multiple interface announcements%></legend>
18         <table class="cbi-section-table">
19                 <tr class="cbi-section-table-titles">
20                         <th class="cbi-section-table-cell"><%:OLSR node%></th>
21                         <th class="cbi-section-table-cell" ><%:Secondary OLSR interfaces%></th>
22                 </tr>
23
24                 <% for k, mid in ipairs(mids) do 
25                         local aliases = ''
26                         for k,v in ipairs(mid.aliases) do
27                                 if aliases == '' then
28                                         sep = ''
29                                 else
30                                         sep = ', '
31                                 end
32                                 aliases = v.ipAddress .. sep .. aliases
33                         end
34                         local host = mid.ipAddress
35                         if mid.proto == '6' then
36                                 host = '[' .. mid.ipAddress .. ']'
37                         end
38                 %>
39
40                 <tr class="cbi-section-table-row cbi-rowstyle-<%=i%> proto-<%=mid.proto%>">
41                         <td class="cbi-section-table-cell"><a href="http://<%=host%>/cgi-bin-status.html"><%=mid.ipAddress%></a></td>
42                         <td class="cbi-section-table-cell"><%=aliases%></td>
43                 </tr>
44
45                 <% i = ((i % 2) + 1)
46                 end %>
47         </table>
48 </fieldset>
49 <%+status-olsr/common_js%>
50 <%+footer%>