From b515d6f88e8cbfe1b742d0a5cc99aa2d55b6c38e Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 22 May 2008 17:21:30 +0000 Subject: * Changed Makefiles to use mainline Lua * Added a dispatching shortcut (thanks to Jow) --- applications/luci-fw/src/controller/luci_fw/luci_fw.lua | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'applications/luci-fw/src/controller/luci_fw') diff --git a/applications/luci-fw/src/controller/luci_fw/luci_fw.lua b/applications/luci-fw/src/controller/luci_fw/luci_fw.lua index 864455ca8f..9a92b90998 100644 --- a/applications/luci-fw/src/controller/luci_fw/luci_fw.lua +++ b/applications/luci-fw/src/controller/luci_fw/luci_fw.lua @@ -1,18 +1,7 @@ module("ffluci.controller.luci_fw.luci_fw", package.seeall) function index() - local page = node("admin", "network", "portfw") - page.target = cbi("luci_fw/portfw") - page.title = "Portweiterleitung" - page.order = 70 - - local page = node("admin", "network", "routing") - page.target = cbi("luci_fw/routing") - page.title = "Routing" - page.order = 72 - - local page = node("admin", "network", "firewall") - page.target = cbi("luci_fw/firewall") - page.title = "Firewall" - page.order = 74 + entry({"admin", "network", "portfw"}, cbi("luci_fw/portfw"), "Portweiterleitung", 70) + entry({"admin", "network", "routing"}, cbi("luci_fw/routing"), "Routing", 72) + entry({"admin", "network", "firewall"}, cbi("luci_fw/firewall"), "Firewall", 74) end \ No newline at end of file -- cgit v1.2.3