<%# 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: index.htm 6029 2010-04-05 17:46:20Z jow $ -%> <%+header%>

<%:olsrd_links%>

<%:olsrd_links_desc%>


<% for k, link in ipairs(links) do local color = "#bb3333" link.Cost = tonumber(link.Cost) or 0 if link.Cost == 0 then color = "#bb3333" elseif link.Cost < 4 then color = "#00cc00" elseif link.Cost < 10 then color = "#ffcb05" elseif link.Cost < 100 then color = "#ff6600" end %> <% end %>
<%:olsrd_neighbour_ip%> <%:olsrd_local_ip%> LQ NLQ ETX
/cgi-bin-nodes.html"><%=link["Remote IP"]%> <%=link["Local IP"]%> <%=link.LQ%> <%=link.NLQ%> <%=string.format("%.3f", link.Cost)%>

<%:legend%>:

<%+footer%>