* Fixed ffluci.util.trim, ffluci.util.split
[project/luci.git] / module / public-core / src / view / public_status / index.htm
1 <%+header%>
2 <h1><%:status Status%></h1>
3 <h2><%:system System%></h2>
4
5 <br />
6 <table cellspacing="0" cellpadding="6" class="smalltext">
7 <tr>
8 <th><%:system_type Systemtyp%>:</th>
9 <td><%=s%></td>
10 </tr>
11 <tr>
12 <th><%:cpu Prozessor%>:</th>
13 <td><%=m%></td>
14 </tr>
15 <tr>
16 <th><%:ram Hauptspeicher%>:</th>
17 <td><%=r%></td>
18 </tr>
19 </table>
20 <br /><br />
21
22 <h2><%:wifi Drahtlos%></h2>
23 <br />
24 <table cellspacing="0" cellpadding="6" class="smalltext">
25 <tr>
26 <th><%:name Name%></th>
27 <th><%:protocol Protokoll%></th>
28 <th><%:frequency Frequenz%></th>
29 <th><%:power Leistung%></th>
30 <th><%:bitrate Bitrate%></th>
31 <th><%:rts RTS%></th>
32 <th><%:frag Frag.%></th>
33 <th><%:link Verb.%></th>
34 <th><%:signal Signal%></th>
35 <th><%:noise Rausch%></th>
36 </tr>
37 <%for k, v in pairs(wifi) do%>
38 <tr>
39 <td rowspan="2"><%=k%></td>
40 <td><%=v[1]%></td>
41 <td><%=v.Frequency%></td>
42 <td><%=v["Tx-Power"]%></td>
43 <td><%=v["Bit Rate"]%></td>
44 <td><%=v["RTS thr"]%></td>
45 <td><%=v["Fragment thr"]%></td>
46 <td><%=v["Link Quality"]%></td>
47 <td><%=v["Signal level"]%></td>
48 <td><%=v["Noise level"]%></td>
49 </tr>
50 <tr>
51 <td colspan="4"><strong><%:essid ESSID%>: </strong><%=v.ESSID%></td>
52 <td colspan="5"><strong><%:bssid BSSID%>: </strong><%=(v.Cell or v["Access Point"])%></td>
53 </tr>
54 <%end%>
55 </table>
56 <br />
57 <br />
58 <h2><%:defroutes Standardrouten%></h2>
59 <br />
60 <table cellspacing="0" cellpadding="6" class="smalltext">
61 <tr>
62 <th><%:gateway Gateway%></th>
63 <th><%:metric Metrik%></th>
64 <th><%:iface Schnittstelle%></th>
65 </tr>
66 <%
67 local be = (routes[1] and routes[1].Mask:sub(-2) == "00")
68 for i, rt in pairs(routes) do
69 %>
70 <tr>
71 <td><%=ffluci.sys.net.hexip4(rt.Gateway, be)%></th>
72 <td><%=rt.Metric%></th>
73 <td><%=rt.Iface%></th>
74 </tr>
75 <% end %>
76 </table>
77 <%+footer%>