2 LuCI - Lua Configuration Interface
3 Copyright
2008 Steven Barth
<steven@midlink.org
>
4 Copyright
2008 Jo-Philipp Wich
<xm@leipzig.freifunk.net
>
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
10 http://www.apache.org/licenses/LICENSE-
2.0
16 <h1><%:olsr_topology%
></h1>
18 <table class=
"smalltext" cellspacing=
"0" cellpadding=
"6">
20 <th><%:destination%
></th>
21 <th><%:olsr_lasthop%
></th>
26 <% for k, route in ipairs(routes) do
27 if route.Linkcost then
28 route.LQ, route.ILQ, route.ETX = route.Linkcost:match(
"(.*)/(.*)\t(.*)")
32 <td><a href=
"http://<%=route["Destination IP
"]%>"><%=route[
"Destination IP"]%
></a></td>
33 <td><a href=
"http://<%=route["Last hop IP
"]%>"><%=route[
"Last hop IP"]%
></a></td>
34 <td><%=route.LQ%
></td>
35 <td><%=route.ILQ%
></td>
36 <td><%=string.format(
"%.3f", tonumber(route.ETX) or
0)%
></td>