projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modules/admin-mini: Remove unneeded checks
[project/luci.git]
/
modules
/
admin-mini
/
luasrc
/
view
/
mini
/
index.htm
diff --git
a/modules/admin-mini/luasrc/view/mini/index.htm
b/modules/admin-mini/luasrc/view/mini/index.htm
index
1b9e46a
..
e00100c
100644
(file)
--- a/
modules/admin-mini/luasrc/view/mini/index.htm
+++ b/
modules/admin-mini/luasrc/view/mini/index.htm
@@
-12,7
+12,8
@@
You may obtain a copy of the License at
$Id$
-%>
$Id$
-%>
-<%
+<%+header%>
+<%-
local system, model, memtotal = luci.sys.sysinfo()
local uptime = luci.sys.uptime()
local system, model, memtotal = luci.sys.sysinfo()
local uptime = luci.sys.uptime()
@@
-27,7
+28,6
@@
local utsecs = uptime % 60
local iwconfig = luci.sys.wifi.getiwconfig()
-%>
local iwconfig = luci.sys.wifi.getiwconfig()
-%>
-<%+header%>
<h1><%:a_i_i_hello%></h1>
<p><%:a_i_i_admin1%></p>
<p><%:a_i_i_admin2%><br />
<h1><%:a_i_i_hello%></h1>
<p><%:a_i_i_admin1%></p>
<p><%:a_i_i_admin2%><br />
@@
-66,7
+66,6
@@
local iwconfig = luci.sys.wifi.getiwconfig()
</table>
</table>
-<%- if luci.model.uci.get_statevalue("network", "lan", "up") == "1" then %>
<br />
<h2><%:m_n_local%></h2>
<table cellspacing="0" cellpadding="6" class="smalltext">
<br />
<h2><%:m_n_local%></h2>
<table cellspacing="0" cellpadding="6" class="smalltext">
@@
-79,10
+78,8
@@
local iwconfig = luci.sys.wifi.getiwconfig()
<td><%=luci.model.uci.get_statevalue("network", "lan", "netmask")%></td>
</tr>
</table>
<td><%=luci.model.uci.get_statevalue("network", "lan", "netmask")%></td>
</tr>
</table>
-<%- end %>
-<%- if luci.model.uci.get_statevalue("network", "lan", "up") == "1" then %>
<br />
<h2><%:m_n_inet%></h2>
<table cellspacing="0" cellpadding="6" class="smalltext">
<br />
<h2><%:m_n_inet%></h2>
<table cellspacing="0" cellpadding="6" class="smalltext">
@@
-95,7
+92,6
@@
local iwconfig = luci.sys.wifi.getiwconfig()
<td><%=luci.model.uci.get_statevalue("network", "wan", "netmask")%></td>
</tr>
</table>
<td><%=luci.model.uci.get_statevalue("network", "wan", "netmask")%></td>
</tr>
</table>
-<%- end %>
<%- if next(iwconfig) then %>
<h2><%:wifi%></h2>
<%- if next(iwconfig) then %>
<h2><%:wifi%></h2>
@@
-134,4
+130,4
@@
local iwconfig = luci.sys.wifi.getiwconfig()
<%end%>
</table>
<%-end%>
<%end%>
</table>
<%-end%>
-<%+footer%>
\ No newline at end of file
+<%+footer%>