libs/cbi: don't filter bridge ports in firewall zone widget

This commit is contained in:
Jo-Philipp Wich 2009-12-26 00:09:47 +00:00
parent 9a6b431249
commit 0ddedc638c

View file

@ -63,11 +63,10 @@ $Id$
<% <%
local nempty = true local nempty = true
for _, iface in ipairs(net and net:get_interfaces() or {}) do for _, iface in ipairs(net and net:get_interfaces() or {}) do
if not iface:is_bridgeport() then nempty = false
nempty = false
%> %>
<img<%=attr("title", iface:get_i18n())%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> <img<%=attr("title", iface:get_i18n())%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" />
<% end end %> <% end %>
<% if nempty then %><em><%:(no interfaces attached)%></em><% end %> <% if nempty then %><em><%:(no interfaces attached)%></em><% end %>
</span> </span>
<% end end %> <% end end %>