7871e133e3163eaedcc9662c74cd20e7ff45739e
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / topology.htm
1 <%+header%>
2 <h1><%:olsr_topology%></h1>
3 <br />
4 <table cellspacing="0" cellpadding="6">
5 <tr>
6 <th><%:destination%></th>
7 <th><%:olsr_lasthop%></th>
8 <th>LQ</th>
9 <th>ILQ</th>
10 <th>ETX</th>
11 </tr>
12 <% for k, route in ipairs(routes) do 
13         if route.Linkcost then
14                 route.LQ, route.ILQ, route.ETX = route.Linkcost:match("(.*)/(.*)\t(.*)")
15         end
16 %>
17 <tr>
18 <td><a href="http://<%=route["Destination IP"]%>"><%=route["Destination IP"]%></a></td>
19 <td><a href="http://<%=route["Last hop IP"]%>"><%=route["Last hop IP"]%></a></td>
20 <td><%=route.LQ%></td>
21 <td><%=route.ILQ%></td>
22 <td><%=route.ETX%></td>
23 </tr>
24 <% end %>
25 </table>
26 <br />
27 <%+footer%>