libs/web: remove inline styles for interface badges

This commit is contained in:
Jo-Philipp Wich 2012-02-15 16:00:23 +00:00
parent 6832010927
commit 481ddd0909
3 changed files with 3 additions and 13 deletions

View file

@ -27,12 +27,7 @@
if net then if net then
zempty = false zempty = false
%> %>
&#160; <span class="ifacebadge<% if net:name() == self.network then %> ifacebadge-active<% end %>"><%=net:name()%>:
<%- 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 -%>
<% <%
local nempty = true local nempty = true
for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do

View file

@ -59,12 +59,7 @@
if net then if net then
zempty = false zempty = false
%> %>
&#160; <span class="ifacebadge<% if net:name() == self.network then %> ifacebadge-active<% end %>"><%=net:name()%>:
<%- 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 -%>
<% <%
local nempty = true local nempty = true
for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do

View file

@ -32,7 +32,7 @@
ifattr(checked[net:name()], "checked", "checked") ifattr(checked[net:name()], "checked", "checked")
%> /> &#160; %> /> &#160;
<label<%=attr("for", cbid .. "." .. net:name())%>> <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 local empty = true
for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do