<%# LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ -%> <%- local ntm = require "luci.model.network".init() local fwm = require "luci.model.firewall".init() local net local netlist = { } for _, net in ipairs(ntm:get_networks()) do if net:name() ~= "loopback" then netlist[#netlist+1] = net:name() end end -%>
<%:Interface Overview%> <% for i, net in ipairs(netlist) do local z = fwm:get_zone_by_network(net) local c = z and z:get_color() or "#EEEEEE" local t = z and translate("Part of zone %q" % z:name()) or translate("No zone assigned") %> <% end %>
<%:Network%> <%:Status%> <%:Actions%>
<%=net:upper()%>

?
<%:Collecting data...%> '" title="<%:Edit this interface%>" value="<%:Edit%>" /> '" title="<%:Delete this interface%>" value="<%:Delete%>" />
'" />