From 481ddd09098242db05231a2e84c19c831d5cd033 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 15 Feb 2012 16:00:23 +0000 Subject: libs/web: remove inline styles for interface badges --- libs/web/luasrc/view/cbi/firewall_zoneforwards.htm | 7 +------ libs/web/luasrc/view/cbi/firewall_zonelist.htm | 7 +------ libs/web/luasrc/view/cbi/network_netlist.htm | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/libs/web/luasrc/view/cbi/firewall_zoneforwards.htm b/libs/web/luasrc/view/cbi/firewall_zoneforwards.htm index 5a2befd6e..f027ab3b1 100644 --- a/libs/web/luasrc/view/cbi/firewall_zoneforwards.htm +++ b/libs/web/luasrc/view/cbi/firewall_zoneforwards.htm @@ -27,12 +27,7 @@ if net then zempty = false %> -   - <%- if net:name() == self.network then -%> - <%=net:name()%>: - <%- else -%> - <%=net:name()%>: - <%- end -%> + <%=net:name()%>: <% local nempty = true for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do diff --git a/libs/web/luasrc/view/cbi/firewall_zonelist.htm b/libs/web/luasrc/view/cbi/firewall_zonelist.htm index 53fa83624..8aa69705d 100644 --- a/libs/web/luasrc/view/cbi/firewall_zonelist.htm +++ b/libs/web/luasrc/view/cbi/firewall_zonelist.htm @@ -59,12 +59,7 @@ if net then zempty = false %> -   - <%- if net:name() == self.network then -%> - <%=net:name()%>: - <%- else -%> - <%=net:name()%>: - <%- end -%> + <%=net:name()%>: <% local nempty = true for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do diff --git a/libs/web/luasrc/view/cbi/network_netlist.htm b/libs/web/luasrc/view/cbi/network_netlist.htm index 37a206ad6..35e0ed354 100644 --- a/libs/web/luasrc/view/cbi/network_netlist.htm +++ b/libs/web/luasrc/view/cbi/network_netlist.htm @@ -32,7 +32,7 @@ ifattr(checked[net:name()], "checked", "checked") %> />   > -  <%=net:name()%>: + <%=net:name()%>: <% local empty = true for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do -- cgit v1.2.3