X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-mini%2Fluasrc%2Fview%2Fmini%2Findex.htm;h=e88324a8cbc84478ee522f1037dc2675800b926a;hp=e00100c18b7317ee256b00e486ff94f0a855ee1a;hb=f1d763ef7604cb251d9dd42f58cc90fe1e52f65c;hpb=be5c20195f71ff6187a31b4200ea1f23e1c9b13c diff --git a/modules/admin-mini/luasrc/view/mini/index.htm b/modules/admin-mini/luasrc/view/mini/index.htm index e00100c18..e88324a8c 100644 --- a/modules/admin-mini/luasrc/view/mini/index.htm +++ b/modules/admin-mini/luasrc/view/mini/index.htm @@ -12,122 +12,10 @@ 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_admin1%>
<%:a_i_i_admin2%>
<%:a_i_i_admin3%>
<%:a_i_i_admin6%>
-<%: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")%> | -
<%:name%> | -<%:protocol%> | -<%:frequency%> | -<%:power%> | -<%:bitrate%> | -<%:rts%> | -<%:frag%> | -<%:link%> | -<%:signal%> | -<%:noise%> | -
---|---|---|---|---|---|---|---|---|---|
<%=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"])%> | -