Attempt #3
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / topology.htm
index c622026..c7bd935 100644 (file)
@@ -1,21 +1,36 @@
+<%#
+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$
+
+-%>
 <%+header%>
-<h1><%:olsrtopo OLSR-Topologie%></h1>
+<h1><%:olsr_topology%></h1>
 <br />
-<table cellspacing="0" cellpadding="6">
+<table class="smalltext" cellspacing="0" cellpadding="6">
 <tr>
-<th><%:destination Ziel%></th>
-<th><%:lasthop Letzter Router%></th>
+<th><%:destination%></th>
+<th><%:olsr_lasthop%></th>
 <th>LQ</th>
 <th>ILQ</th>
 <th>ETX</th>
 </tr>
-<% for k, route in ipairs(routes) do %>
+<% for k, route in ipairs(routes) do 
+%>
 <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><%=route.ETX%></td>
+<td><%=string.format("%.3f", tonumber(route.ETX) or 0)%></td>
 </tr>
 <% end %>
 </table>