libs/web: remove inline styles from network_netinfo widget
This commit is contained in:
parent
6a79dfc77e
commit
7c9dd3ab81
1 changed files with 11 additions and 13 deletions
|
@ -11,19 +11,17 @@
|
||||||
-%>
|
-%>
|
||||||
|
|
||||||
<% if net then %>
|
<% if net then %>
|
||||||
<div style="padding:0.5em">
|
<span class="ifacebadge"><%=net:name()%>:
|
||||||
<span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
|
<%
|
||||||
<%
|
local empty = true
|
||||||
local empty = true
|
for _, iface in ipairs(net:get_interfaces() or { net:get_interface() }) do
|
||||||
for _, iface in ipairs(net:get_interfaces() or { net:get_interface() }) do
|
if not iface:is_bridge() then
|
||||||
if not iface:is_bridge() then
|
empty = false
|
||||||
empty = false
|
%>
|
||||||
%>
|
<img<%=attr("title", iface:get_i18n())%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" />
|
||||||
<img<%=attr("title", iface:get_i18n())%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" />
|
<% end end %>
|
||||||
<% end end %>
|
<% if empty then %><em><%:(no interfaces attached)%></em><% end %>
|
||||||
<% if empty then %><em><%:(no interfaces attached)%></em><% end %>
|
</span>
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%+cbi/valuefooter%>
|
<%+cbi/valuefooter%>
|
||||||
|
|
Loading…
Reference in a new issue