libs/web: remove inline styles for interface badges
[project/luci.git] / libs / web / luasrc / view / cbi / firewall_zonelist.htm
index 53fa83624440934af33194cce88620b61f11ca96..8aa69705d94dcb131ae0a7233f441a56fa044121 100644 (file)
                                        if net then
                                                zempty = false
                        %>
-                                
-                               <%- if net:name() == self.network then -%>
-                                       <span style="background-color:#FFFFFF; border:1px solid #000000; padding:2px; font-weight:bold"><%=net:name()%>:
-                               <%- else -%>
-                                       <span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
-                               <%- end -%>
+                               <span class="ifacebadge<% if net:name() == self.network then %> ifacebadge-active<% end %>"><%=net:name()%>:
                                <%
                                        local nempty = true
                                        for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do