2008-07-07 22:00:56 +00:00
|
|
|
<%#
|
|
|
|
LuCI - Lua Configuration Interface
|
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
|
|
|
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
|
|
|
|
-%>
|
2008-05-08 16:14:49 +00:00
|
|
|
<%+header%>
|
2008-09-14 20:57:00 +00:00
|
|
|
<h1><%:olsrd_topology%></h1>
|
|
|
|
<p><%:olsrd_topology_desc%></p>
|
2008-05-08 16:14:49 +00:00
|
|
|
<br />
|
2008-07-16 02:38:45 +00:00
|
|
|
<table class="smalltext" cellspacing="0" cellpadding="6">
|
2008-05-08 16:14:49 +00:00
|
|
|
<tr>
|
2008-09-14 20:57:00 +00:00
|
|
|
<th><%:olsrd_node%></th>
|
|
|
|
<th><%:olsrd_topology_lasthop%></th>
|
2008-05-08 16:14:49 +00:00
|
|
|
<th>LQ</th>
|
|
|
|
<th>ILQ</th>
|
|
|
|
<th>ETX</th>
|
|
|
|
</tr>
|
2008-09-14 20:57:00 +00:00
|
|
|
<% for k, route in ipairs(routes) do
|
2008-07-05 16:27:31 +00:00
|
|
|
%>
|
2008-05-08 16:14:49 +00:00
|
|
|
<tr>
|
2008-09-13 17:51:03 +00:00
|
|
|
<td><a href="http://<%=route["Dest. IP"]%>"><%=route["Dest. IP"]%></a></td>
|
2008-05-08 16:14:49 +00:00
|
|
|
<td><a href="http://<%=route["Last hop IP"]%>"><%=route["Last hop IP"]%></a></td>
|
|
|
|
<td><%=route.LQ%></td>
|
2008-09-13 17:51:03 +00:00
|
|
|
<td><%=route.NLQ%></td>
|
|
|
|
<td><%=string.format("%.3f", tonumber(route.Cost) or 0)%></td>
|
2008-05-08 16:14:49 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
<br />
|
2008-09-14 20:57:00 +00:00
|
|
|
<%+footer%>
|