From: Jo-Philipp Wich Date: Tue, 26 Jun 2012 21:49:15 +0000 (+0000) Subject: libs/web: extend network_ifacelist widget to display all networks an iface is member of X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=fe7424b68e920cd5472978beeaf32763a83bd391;p=openwrt-luci.git libs/web: extend network_ifacelist widget to display all networks an iface is member of --- diff --git a/libs/web/luasrc/view/cbi/network_ifacelist.htm b/libs/web/luasrc/view/cbi/network_ifacelist.htm index a6565eb9f5..727b0a4a66 100644 --- a/libs/web/luasrc/view/cbi/network_ifacelist.htm +++ b/libs/web/luasrc/view/cbi/network_ifacelist.htm @@ -51,7 +51,13 @@ <% if link then -%><% end -%> .png" /> <% if link then -%><% end -%> - <%=pcdata(iface:get_i18n())%><% local n = iface:get_network(); if n then %> (<%=n:name()%>)<% end %> + <%=pcdata(iface:get_i18n())%> + <% local ns = iface:get_networks(); if #ns > 0 then %>( + <%- local i, n; for i, n in ipairs(ns) do -%> + <%-= (i>1) and ', ' -%> + <%=n:name()%> + <%- end -%> + )<% end %> <% end end %>