* applications/luci-olsr: Translation
[project/luci.git] / applications / luci-olsr / luasrc / view / status-olsr / index.htm
1 <%+header%>
2 <h1><%:olsr_links OLSR-Verbindungen%></h1>
3 <p><%:olsr_links1 Übersicht über aktuell bestehende OLSR-Verbindungen%></p>
4 <br />
5 <table cellspacing="0" cellpadding="6">
6 <tr>
7 <th><%:destination Ziel%></th>
8 <th><%:local Lokal%></th>
9 <th>LQ</th>
10 <th>NLQ</th>
11 <th>ETX</th>
12 </tr>
13 <% for k, link in ipairs(links) do 
14         local color = "#bb3333"
15         
16         link.ETX = tonumber(link.ETX)
17         if link.ETX == 0 then
18                 color = "#bb3333"
19         elseif link.ETX < 4 then
20                 color = "#00cc00"
21         elseif link.ETX < 10 then
22                 color = "#ffcb05"
23         elseif link.ETX < 100 then
24                 color = "#ff6600"
25         end
26 %>
27 <tr>
28 <td><a href="http://<%=link["remote IP"]%>"><%=link["remote IP"]%></a></td>
29 <td><%=link["Local IP"]%></td>
30 <td><%=link.LinkQuality%></td>
31 <td><%=link.NLQ%></td>
32 <td style="background-color:<%=color%>"><%=link.ETX%></td>
33 </tr>
34 <% end %>
35 </table>
36 <br />
37 <h3><%:legend Legende%>:</h3>
38 <ul>
39 <li><strong>LQ: </strong><%:olsrlinks_lq1 Erfolgsquote gesendeter Pakete%></li>
40 <li><strong>NLQ: </strong><%:olsrlinks_nlq1 Erfolgsquote empfangener Pakete%></li>
41 <li><strong>ETX: </strong><%:olsrlinks_etx1 Zu erwartende Sendeversuche pro Paket%></li>
42 </ul>
43 <%+footer%>