From fe7424b68e920cd5472978beeaf32763a83bd391 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 26 Jun 2012 21:49:15 +0000 Subject: [PATCH] libs/web: extend network_ifacelist widget to display all networks an iface is member of --- libs/web/luasrc/view/cbi/network_ifacelist.htm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 %> -- 2.30.2