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-full: fix arp lookup in wifi overview
[project/luci.git]
/
libs
/
cbi
/
luasrc
/
view
/
cbi
/
firewall_zonelist.htm
diff --git
a/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm
b/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm
index
dcc14fb
..
4f4106b
100644
(file)
--- a/
libs/cbi/luasrc/view/cbi/firewall_zonelist.htm
+++ b/
libs/cbi/luasrc/view/cbi/firewall_zonelist.htm
@@
-51,9
+51,8
@@
$Id$
local zempty = true
for _, net in ipairs(zone:get_networks()) do
net = nwm:get_network(net)
local zempty = true
for _, net in ipairs(zone:get_networks()) do
net = nwm:get_network(net)
- zempty = false
if net then
if net then
-
local nempty = tru
e
+
zempty = fals
e
%>
<%- if net:name() == self.network then -%>
%>
<%- if net:name() == self.network then -%>
@@
-62,12
+61,12
@@
$Id$
<span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
<%- end -%>
<%
<span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
<%- end -%>
<%
+ 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 %>
</span>
<% end end %>
<% if nempty then %><em><%:(no interfaces attached)%></em><% end %>
</span>
<% end end %>