From 7d08bec3ae84c79c17718cf794427fef7af37085 Mon Sep 17 00:00:00 2001
From: Steven Barth
Date: Sun, 17 Aug 2008 00:19:44 +0000
Subject: modules/admin-mini: Revised homepage
---
modules/admin-mini/luasrc/view/mini/index.htm | 113 -------------------------
modules/admin-mini/luasrc/view/mini/index2.htm | 54 ++++++++++++
2 files changed, 54 insertions(+), 113 deletions(-)
create mode 100644 modules/admin-mini/luasrc/view/mini/index2.htm
(limited to 'modules/admin-mini/luasrc/view/mini')
diff --git a/modules/admin-mini/luasrc/view/mini/index.htm b/modules/admin-mini/luasrc/view/mini/index.htm
index e00100c18b..385deaf7aa 100644
--- a/modules/admin-mini/luasrc/view/mini/index.htm
+++ b/modules/admin-mini/luasrc/view/mini/index.htm
@@ -11,22 +11,6 @@ You may obtain a copy of the License at
$Id$
--%>
-<%+header%>
-<%-
-local system, model, memtotal = luci.sys.sysinfo()
-
-local uptime = luci.sys.uptime()
-uptime = tonumber(uptime)
-
-local utdays = math.floor(uptime / 86400)
-uptime = uptime % 86400
-local uthour = math.floor(uptime / 3600)
-uptime = uptime % 3600
-local utmins = math.floor(uptime / 60)
-local utsecs = uptime % 60
-
-local iwconfig = luci.sys.wifi.getiwconfig()
-%>
<%:a_i_i_hello%>
<%:a_i_i_admin1%>
@@ -34,100 +18,3 @@ local iwconfig = luci.sys.wifi.getiwconfig()
<%:a_i_i_admin3%>
-
- <%:hostname%>: |
- <%=luci.sys.hostname()%> |
-
-
- <%:system%>: |
- <%=system%> |
-
-
- <%:m_i_processor%>: |
- <%=model%> |
-
-
- <%:m_i_memory%>: |
- <%=string.format("%.2f", tonumber(memtotal) / 1024)%> MiB |
-
-
- <%:m_i_systemtime%>: |
- <%=os.date("%c")%> |
-
-
- <%:m_i_uptime%>: |
- <%=string.format("%dd %d:%d:%.0f", utdays, uthour, utmins, utsecs)%> |
-
-
-
-
-
-
- <%:ipaddress%>: |
- <%=luci.model.uci.get_statevalue("network", "lan", "ipaddr")%> |
-
-
- <%:netmask%>: |
- <%=luci.model.uci.get_statevalue("network", "lan", "netmask")%> |
-
-
-
-
-
-
- <%:ipaddress%>: |
- <%=luci.model.uci.get_statevalue("network", "wan", "ipaddr")%> |
-
-
- <%:netmask%>: |
- <%=luci.model.uci.get_statevalue("network", "wan", "netmask")%> |
-
-
-
-<%- if next(iwconfig) then %>
-
-
-<%:name%> |
-<%:protocol%> |
-<%:frequency%> |
-<%:power%> |
-<%:bitrate%> |
-<%:rts%> |
-<%:frag%> |
-<%:link%> |
-<%:signal%> |
-<%:noise%> |
-
-<%for k, v in pairs(iwconfig) do
-%>
-
-<%=k%> |
-<%=v[1]%> |
-<%=v.Frequency%> |
-<%=v["Tx-Power"]%> |
-<%=v["Bit Rate"]%> |
-<%=v["RTS thr"]%> |
-<%=v["Fragment thr"]%> |
-<%=v["Link Quality"]%> |
-<%=v["Signal level"]%> |
-<%=v["Noise level"]%> |
-
-
-ESSID: <%=v.ESSID%> |
-BSSID: <%=(v.Cell or v["Access Point"])%> |
-
-<%end%>
-
-<%-end%>
-<%+footer%>
diff --git a/modules/admin-mini/luasrc/view/mini/index2.htm b/modules/admin-mini/luasrc/view/mini/index2.htm
new file mode 100644
index 0000000000..741ef7c466
--- /dev/null
+++ b/modules/admin-mini/luasrc/view/mini/index2.htm
@@ -0,0 +1,54 @@
+<%#
+LuCI - Lua Configuration Interface
+Copyright 2008 Steven Barth