diff options
author | Steven Barth <steven@midlink.org> | 2008-07-15 08:47:36 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-15 08:47:36 +0000 |
commit | 97ff4a156ff1aa6a4d2ab65ab13d12b4eb2651e2 (patch) | |
tree | 7b95d899c2cfc0bb95fc2ee149dec3ea3b4e0742 /modules/admin-full/luasrc/view/admin_status | |
parent | 4d7c453ea83c749b05d6271a3bdc0c0c057150ed (diff) |
Split up admin-core into admin-core and admin-full, preparing admin-mini
Diffstat (limited to 'modules/admin-full/luasrc/view/admin_status')
4 files changed, 132 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/view/admin_status/index.htm b/modules/admin-full/luasrc/view/admin_status/index.htm new file mode 100644 index 0000000000..e1f4b0e53b --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_status/index.htm @@ -0,0 +1,19 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth <steven@midlink.org> +Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +<h1><%:status%></h1> +<p><%:a_st_i_status1%></p> +<p><%:a_st_i_status2%></p> +<%+footer%>
\ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_status/iwscan.htm b/modules/admin-full/luasrc/view/admin_status/iwscan.htm new file mode 100644 index 0000000000..cbba791e65 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_status/iwscan.htm @@ -0,0 +1,52 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth <steven@midlink.org> +Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +<h1><%:iwscan%></h1> +<p><%:iwscan1%></p> + +<br /> +<table cellspacing="0" cellpadding="6" class="smalltext"> +<tr> +<th><%:interface%></th> +<th>ESSID</th> +<th>BSSID</th> +<th><%:mode%></th> +<th><%:channel%></th> +<th><%:iwscan_encr%></th> +<th><%:iwscan_link%></th> +<th><%:iwscan_signal%></th> +<th><%:iwscan_noise%></th> +</tr> +<%for iface, cells in pairs(luci.sys.wifi.iwscan()) do + for i, cell in ipairs(cells) do +%> +<tr> +<td><%=iface%></td> +<td><%=cell.ESSID%></td> +<td><%=cell.Address%></td> +<td><%=cell.Mode%></td> +<td><%=(cell.Channel or cell.Frequency or "")%></td> +<td><%=cell["Encryption key"]%></td> +<td><%=cell.Quality%></td> +<td><%=cell["Signal level"]%></td> +<td><%=cell["Noise level"]%></td> +</tr> +<% + end +end +%> +</table> +<br /> +<%+footer%>
\ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_status/routes.htm b/modules/admin-full/luasrc/view/admin_status/routes.htm new file mode 100644 index 0000000000..c4ebf347a8 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_status/routes.htm @@ -0,0 +1,42 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth <steven@midlink.org> +Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +<h1><%:routes%></h1> + +<br /> +<table cellspacing="0" cellpadding="6" class="smalltext"> +<tr> +<th><%:target%></th> +<th><%:routes_netmask%></th> +<th><%:routes_gateway%></th> +<th><%:routes_metric%></th> +<th><%:interface%></th> +</tr> +<% +local routes = luci.sys.net.routes() + +for i, r in pairs(routes) do +%> +<tr> +<td><%=luci.sys.net.hexip4(r.Destination)%></td> +<td><%=luci.sys.net.hexip4(r.Mask)%></td> +<td><%=luci.sys.net.hexip4(r.Gateway)%></td> +<td><%=r.Metric%></td> +<td><%=r.Iface%></td> +</tr> +<% end %> +</table> +<br /> +<%+footer%>
\ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_status/syslog.htm b/modules/admin-full/luasrc/view/admin_status/syslog.htm new file mode 100644 index 0000000000..f3d1f0a963 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_status/syslog.htm @@ -0,0 +1,19 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth <steven@midlink.org> +Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +<h1><%:status%></h1> +<h2><%:syslog%></h2> +<code><%=syslog%></code> +<%+footer%>
\ No newline at end of file |