%+header%>
<%:olsrlinks OLSR-Routen%>
<%:destination Ziel%> |
<%:gateway Gateway%> |
<%:interface Schnittstelle%> |
<%:metric Metrik%> |
ETX |
<% for k, route in ipairs(routes) do
local color = "#bb3333"
route.ETX = tonumber(route.ETX)
if route.ETX == 0 then
color = "#bb3333"
elseif route.ETX < 4 then
color = "#00cc00"
elseif route.ETX < 10 then
color = "#ffcb05"
elseif route.ETX < 100 then
color = "#ff6600"
end
%>
<%=route.Destination%> |
<%=route.Gateway%> |
<%=route.Interface%> |
<%=route.Metric%> |
<%=route.ETX%> |
<% end %>
<%+footer%>