* luci-trunk: huge xhtml, css and accessibility improvement patch - thanks Alina!
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / topology.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
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 -%>
15 <%+header%>
16 <h2><a id="content" name="content"><%:olsrd_topology%></a></h2>
17 <p><%:olsrd_topology_desc%></p>
18 <br />
19 <table class="smalltext" cellspacing="0" cellpadding="6">
20 <tr>
21 <th><%:olsrd_node%></th>
22 <th><%:olsrd_topology_lasthop%></th>
23 <th>LQ</th>
24 <th>ILQ</th>
25 <th>ETX</th>
26 </tr>
27 <% for k, route in ipairs(routes) do
28 %>
29 <tr>
30 <td><a href="http://<%=route["Dest. IP"]%>"><%=route["Dest. IP"]%></a></td>
31 <td><a href="http://<%=route["Last hop IP"]%>"><%=route["Last hop IP"]%></a></td>
32 <td><%=route.LQ%></td>
33 <td><%=route.NLQ%></td>
34 <td><%=string.format("%.3f", tonumber(route.Cost) or 0)%></td>
35 </tr>
36 <% end %>
37 </table>
38 <br />
39 <%+footer%>