luci/applications/luci-olsr/luasrc/view/status-olsr/topology.htm

38 lines
946 B
HTML
Raw Normal View History

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-06-09 10:10:29 +00:00
<h1><%:olsr_topology%></h1>
2008-05-08 16:14:49 +00:00
<br />
<table class="smalltext" cellspacing="0" cellpadding="6">
2008-05-08 16:14:49 +00:00
<tr>
2008-06-09 10:10:29 +00:00
<th><%:destination%></th>
<th><%:olsr_lasthop%></th>
2008-05-08 16:14:49 +00:00
<th>LQ</th>
<th>ILQ</th>
<th>ETX</th>
</tr>
<% for k, route in ipairs(routes) do
%>
2008-05-08 16:14:49 +00:00
<tr>
<td><a href="http://<%=route["Destination IP"]%>"><%=route["Destination IP"]%></a></td>
<td><a href="http://<%=route["Last hop IP"]%>"><%=route["Last hop IP"]%></a></td>
<td><%=route.LQ%></td>
<td><%=route.ILQ%></td>
<td><%=string.format("%.3f", tonumber(route.ETX) or 0)%></td>
2008-05-08 16:14:49 +00:00
</tr>
<% end %>
</table>
<br />
<%+footer%>