From 7c9dd3ab8149d89c318a1e10668b4c69aa9b9d93 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 15 Feb 2012 16:43:39 +0000 Subject: libs/web: remove inline styles from network_netinfo widget --- libs/web/luasrc/view/cbi/network_netinfo.htm | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'libs/web/luasrc/view/cbi/network_netinfo.htm') diff --git a/libs/web/luasrc/view/cbi/network_netinfo.htm b/libs/web/luasrc/view/cbi/network_netinfo.htm index f364ca088..4fd84112a 100644 --- a/libs/web/luasrc/view/cbi/network_netinfo.htm +++ b/libs/web/luasrc/view/cbi/network_netinfo.htm @@ -11,19 +11,17 @@ -%> <% if net then %> -
- <%=net:name()%>: - <% - local empty = true - for _, iface in ipairs(net:get_interfaces() or { net:get_interface() }) do - if not iface:is_bridge() then - empty = false - %> - style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> - <% end end %> - <% if empty then %><%:(no interfaces attached)%><% end %> - -
+<%=net:name()%>: + <% + local empty = true + for _, iface in ipairs(net:get_interfaces() or { net:get_interface() }) do + if not iface:is_bridge() then + empty = false + %> + style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> + <% end end %> + <% if empty then %><%:(no interfaces attached)%><% end %> + <% end %> <%+cbi/valuefooter%> -- cgit v1.2.3