X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Ffirewall_zonelist.htm;fp=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Ffirewall_zonelist.htm;h=05237866416799279e3479d1096ebfde3169c6b6;hb=a60f781bdf6ff4b4d117fd1dfe54c8a664c5bfaf;hp=863452fbbb5f1e87124e2d880d3969dab69dc161;hpb=76597985edea575860d01533a56954ebdc11307e;p=project%2Fluci.git diff --git a/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm b/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm index 863452fbbb..0523786641 100644 --- a/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm +++ b/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm @@ -48,10 +48,12 @@ $Id$ style="background-color:<%=zone:get_color()%>; padding:0.5em"> <%=zone:name()%>: <% - local empty = true + local zempty = true for _, net in ipairs(zone:get_networks()) do net = nwm:get_network(net) + zempty = false if net then + local nempty = true %>   <%- if net:name() == self.network then -%> @@ -62,13 +64,14 @@ $Id$ <% for _, iface in ipairs(net and net:get_interfaces() or {}) do if not iface:is_bridgeport() then - empty = false + nempty = false %> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> <% end end %> + <% if nempty then %><%:(no interfaces attached)%><% end %> <% end end %> - <% if empty then %><%:(no interfaces attached)%><% end %> + <% if zempty then %><%:(no interfaces attached)%><% end %> <% end end %>