summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-17 01:51:59 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-17 01:51:59 +0000
commit112d053284baf321a8529690f6483709ae6f4acb (patch)
tree40bb52666213d8a047810c334c481a6d18e0ae6c /modules/admin-full/luasrc/view
parent6a9d7ac70c824b18aecdbf858e07612e066e094e (diff)
modules/admin-full: add sanity checks to interface status page
Diffstat (limited to 'modules/admin-full/luasrc/view')
-rw-r--r--modules/admin-full/luasrc/view/admin_status/interfaces.htm8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/view/admin_status/interfaces.htm b/modules/admin-full/luasrc/view/admin_status/interfaces.htm
index abcf6f5dc4..99d5ba8247 100644
--- a/modules/admin-full/luasrc/view/admin_status/interfaces.htm
+++ b/modules/admin-full/luasrc/view/admin_status/interfaces.htm
@@ -171,6 +171,8 @@ $Id$
<% for _, i in ipairs(single_ifs) do
dev = get_ifname(i)
vlan = get_vlan(dev)
+
+ if devinfo and devinfo[dev] then
%>
<h3><%:a_s_if_interface Interface%> <%=i['.name']%></h3>
<p style="font-size:90%;padding-left:1em">
@@ -221,12 +223,14 @@ $Id$
<% end %>
<%- end -%>
<br /></p>
- <% end %>
+ <% end end %>
<% for _, b in ipairs(bridge_ifs) do
br = get_brinfo(b)
dev = br.name
+
+ if devinfo and devinfo[dev] then
%>
<h3><%:a_s_if_bridge Bridge%> <%=br.name%></h3>
<p style="font-size:90%;padding-left:1em">
@@ -294,7 +298,7 @@ $Id$
<% end -%><br />
<% end %>
<br /></p>
- <% end %>
+ <% end end %>
</fieldset>
</div>
</form>