5789e3ad91db0416fa4ac5117230f25e2b03daf4
[project/luci.git] / modules / freifunk / luasrc / view / public_status / index.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
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
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 -%>
15 <%+header%>
16 <h1><%:status%></h1>
17 <h2><%:system%></h2>
18
19 <br />
20 <table cellspacing="0" cellpadding="6" class="smalltext">
21 <tr>
22 <th><%:system_type%>:</th>
23 <td><%=s%></td>
24 </tr>
25 <tr>
26 <th><%:cpu%>:</th>
27 <td><%=m%></td>
28 </tr>
29 <tr>
30 <th><%:ram%>:</th>
31 <td><%=r%></td>
32 </tr>
33 </table>
34 <br /><br />
35
36 <h2><%:wifi%></h2>
37 <br />
38 <table cellspacing="0" cellpadding="6" class="smalltext">
39 <tr>
40 <th><%:name%></th>
41 <th><%:protocol%></th>
42 <th><%:frequency%></th>
43 <th><%:power%></th>
44 <th><%:bitrate%></th>
45 <th><%:rts%></th>
46 <th><%:frag%></th>
47 <th><%:link%></th>
48 <th><%:signal%></th>
49 <th><%:noise%></th>
50 </tr>
51 <%for k, v in pairs(luci.sys.wifi.getiwconfig()) do
52 %>
53 <tr>
54 <td rowspan="2"><%=k%></td>
55 <td><%=v[1]%></td>
56 <td><%=v.Frequency%></td>
57 <td><%=v["Tx-Power"]%></td>
58 <td><%=v["Bit Rate"]%></td>
59 <td><%=v["RTS thr"]%></td>
60 <td><%=v["Fragment thr"]%></td>
61 <td><%=v["Link Quality"]%></td>
62 <td><%=v["Signal level"]%></td>
63 <td><%=v["Noise level"]%></td>
64 </tr>
65 <tr>
66 <td colspan="4"><strong>ESSID: </strong><%=v.ESSID%></td>
67 <td colspan="5"><strong>BSSID: </strong><%=(v.Cell or v["Access Point"])%></td>
68 </tr>
69 <%end%>
70 </table>
71 <br />
72 <br />
73 <h2><%:defroutes%></h2>
74 <br />
75 <table cellspacing="0" cellpadding="6" class="smalltext">
76 <tr>
77 <th><%:gateway%></th>
78 <th><%:metric%></th>
79 <th><%:iface%></th>
80 </tr>
81 <%
82 for i, rt in pairs(routes) do
83 %>
84 <tr>
85 <td><%=luci.sys.net.hexip4(rt.Gateway)%></th>
86 <td><%=rt.Metric%></th>
87 <td><%=rt.Iface%></th>
88 </tr>
89 <% end %>
90 </table>
91 <%+footer%>