diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-26 21:49:15 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-26 21:49:15 +0000 |
commit | fe7424b68e920cd5472978beeaf32763a83bd391 (patch) | |
tree | 5f8916dd75da4aaf404ebf056827501c03810440 /libs/web/luasrc | |
parent | 699391a559dd91d5e0fc3feb28a7fc1edfc90cfb (diff) |
libs/web: extend network_ifacelist widget to display all networks an iface is member of
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r-- | libs/web/luasrc/view/cbi/network_ifacelist.htm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/network_ifacelist.htm b/libs/web/luasrc/view/cbi/network_ifacelist.htm index a6565eb9f..727b0a4a6 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 -%><a href="<%=link%>"><% end -%> <img title="<%=iface:get_type_i18n()%>" style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" /> <% if link then -%></a><% end -%> - <%=pcdata(iface:get_i18n())%><% local n = iface:get_network(); if n then %> (<a href="<%=n:adminlink()%>"><%=n:name()%></a>)<% 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 ', ' -%> + <a href="<%=n:adminlink()%>"><%=n:name()%></a> + <%- end -%> + )<% end %> </label> </li> <% end end %> |