2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 <h1><%:olsrd_links%></h1>
17 <p><%:olsrd_links_desc%></p>
19 <table class="smalltext" cellspacing="0" cellpadding="6">
21 <th><%:olsrd_neighbour_ip%></th>
22 <th><%:olsrd_local_ip%></th>
27 <% for k, link in ipairs(links) do
28 local color = "#bb3333"
30 link.Cost = tonumber(link.Cost) or 0
31 if link.Cost == 0 then
33 elseif link.Cost < 4 then
35 elseif link.Cost < 10 then
37 elseif link.Cost < 100 then
42 <td><a href="http://<%=link["Remote IP"]%>"><%=link["Remote IP"]%></a></td>
43 <td><%=link["Local IP"]%></td>
45 <td><%=link.NLQ%></td>
46 <td style="background-color:<%=color%>"><%=string.format("%.3f", link.Cost)%></td>
53 <li><strong>LQ: </strong><%:olsrd_links_lq_desc%></li>
54 <li><strong>NLQ: </strong><%:olsrd_links_nlq_desc%></li>
55 <li><strong>ETX: </strong><%:olsrd_links_etx_desc%></li>