2 <h1><%:olsrlinks OLSR-Routen%
></h1>
4 <table cellspacing=
"0" cellpadding=
"6">
6 <th><%:destination Ziel%
></th>
7 <th><%:gateway Gateway%
></th>
8 <th><%:interface Schnittstelle%
></th>
9 <th><%:metric Metrik%
></th>
12 <% for k, route in ipairs(routes) do
13 local color =
"#bb3333"
15 route.ETX = tonumber(route.ETX)
16 if route.ETX ==
0 then
18 elseif route.ETX <
4 then
20 elseif route.ETX <
10 then
22 elseif route.ETX <
100 then
27 <td><%=route.Destination%
></td>
28 <td><%=route.Gateway%
></td>
29 <td><%=route.Interface%
></td>
30 <td><%=route.Metric%
></td>
31 <td style=
"background-color:<%=color%>"><%=route.ETX%
></td>