From: Jo-Philipp Wich Date: Wed, 15 Feb 2012 16:43:39 +0000 (+0000) Subject: libs/web: remove inline styles from network_netinfo widget X-Git-Tag: 0.11.0~1100 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=7c9dd3ab8149d89c318a1e10668b4c69aa9b9d93 libs/web: remove inline styles from network_netinfo widget --- 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%>