libs/web: remove inline styles for interface badges
This commit is contained in:
parent
6832010927
commit
481ddd0909
3 changed files with 3 additions and 13 deletions
|
@ -27,12 +27,7 @@
|
||||||
if net then
|
if net then
|
||||||
zempty = false
|
zempty = false
|
||||||
%>
|
%>
|
||||||
 
|
<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
|
||||||
|
|
|
@ -59,12 +59,7 @@
|
||||||
if net then
|
if net then
|
||||||
zempty = false
|
zempty = false
|
||||||
%>
|
%>
|
||||||
 
|
<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
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
ifattr(checked[net:name()], "checked", "checked")
|
ifattr(checked[net:name()], "checked", "checked")
|
||||||
%> />  
|
%> />  
|
||||||
<label<%=attr("for", cbid .. "." .. net:name())%>>
|
<label<%=attr("for", cbid .. "." .. net:name())%>>
|
||||||
 <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
|
||||||
|
|
Loading…
Reference in a new issue