applications/luci-qos: Smaller enhancements, support for luci-mini
[project/luci.git] / applications / luci-fw / luasrc / controller / luci_fw / luci_fw.lua
1 module("luci.controller.luci_fw.luci_fw", package.seeall)
2
3 function index()
4 require("luci.i18n").loadc("luci-fw")
5 local i18n = luci.i18n.translate
6
7 local nodes = {}
8
9 table.insert(nodes, entry({"admin", "network", "portfw"}, cbi("luci_fw/portfw"), i18n("fw_portfw", "Portweiterleitung"), 70))
10 table.insert(nodes, entry({"admin", "network", "routing"}, cbi("luci_fw/routing"), i18n("fw_routing", "Routing"), 73))
11 table.insert(nodes, entry({"admin", "network", "firewall"}, cbi("luci_fw/firewall"), i18n("fw_fw", "Firewall"), 76))
12
13 table.insert(nodes, entry({"mini", "network", "portfw"}, cbi("luci_fw/miniportfw"), i18n("fw_portfw", "Portweiterleitung"), 70))
14
15 for i,n in ipairs(nodes) do
16 n.i18n = "luci-fw"
17 n.dependent = true
18 end
19 end