<%# LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich 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%>

<%:olsr_links%>

<%:olsr_links1%>


<% for k, link in ipairs(links) do local color = "#bb3333" link.ETX = tonumber(link.ETX) or 0 if link.ETX == 0 then color = "#bb3333" elseif link.ETX < 4 then color = "#00cc00" elseif link.ETX < 10 then color = "#ffcb05" elseif link.ETX < 100 then color = "#ff6600" end %> <% end %>
<%:destination%> <%:local%> LQ NLQ ETX
"><%=link["remote IP"]%> <%=link["Local IP"]%> <%=link.LinkQuality%> <%=link.NLQ%> <%=string.format("%.3f", link.ETX)%>

<%:legend%>:

<%+footer%>