libs/web: remove inline styles for interface badges
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 15 Feb 2012 16:00:23 +0000 (16:00 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 15 Feb 2012 16:00:23 +0000 (16:00 +0000)
libs/web/luasrc/view/cbi/firewall_zoneforwards.htm
libs/web/luasrc/view/cbi/firewall_zonelist.htm
libs/web/luasrc/view/cbi/network_netlist.htm

index 5a2befd6e6565ae3cbe9ad4940188a07f11d8ebf..f027ab3b120ed17ef28dbedd556b12d465ec1f21 100644 (file)
                                if net then
                                        zempty = false
                %>
-                       &#160;
-                       <%- 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
index 53fa83624440934af33194cce88620b61f11ca96..8aa69705d94dcb131ae0a7233f441a56fa044121 100644 (file)
                                        if net then
                                                zempty = false
                        %>
-                               &#160;
-                               <%- 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
index 37a206ad6fac4d251fa6121b0407704c50705a63..35e0ed354d3baaf62161a2013cf9a869d4bba3e8 100644 (file)
@@ -32,7 +32,7 @@
                        ifattr(checked[net:name()], "checked", "checked")
                %> /> &#160;
                <label<%=attr("for", cbid .. "." .. net:name())%>>
-                       &#160;<span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
+                       <span class="ifacebadge"><%=net:name()%>:
                                <%
                                        local empty = true
                                        for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do