$Id$
-%>
-<%
+<%+header%>
+<%-
local system, model, memtotal = luci.sys.sysinfo()
local uptime = luci.sys.uptime()
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 />
</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">
<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">
<td><%=luci.model.uci.get_statevalue("network", "wan", "netmask")%></td>
</tr>
</table>
-<%- end %>
<%- if next(iwconfig) then %>
<h2><%:wifi%></h2>
<%end%>
</table>
<%-end%>
-<%+footer%>
\ No newline at end of file
+<%+footer%>