Rebased from upstream / out of band repository.
[librecmc/librecmc.git] / package / luci / modules / luci-mod-status / luasrc / view / admin_status / index / 60-wifi.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008-2018 Jo-Philipp Wich <jo@mein.io>
4  Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <%
8         local fs = require "nixio.fs"
9         local has_wifi = ((fs.stat("/etc/config/wireless", "size") or 0) > 0)
10 %>
11
12 <% if has_wifi then %>
13 <div class="cbi-section">
14         <h3><%:Wireless%></h3>
15
16         <div id="wifi_status_table" class="network-status-table">
17                 <p><em><%:Collecting data...%></em></p>
18         </div>
19 </div>
20
21 <div class="cbi-section">
22         <h3><%:Associated Stations%></h3>
23
24         <%+wifi_assoclist%>
25 </div>
26 <% end %>