From 7fe7d6d5e654d2092f89d81b0e1627fb99eb1a74 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 9 Oct 2008 22:24:21 +0000 Subject: * luci/app/openvpn: controller, model and template updates --- applications/luci-openvpn/luasrc/controller/openvpn.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'applications/luci-openvpn/luasrc/controller') diff --git a/applications/luci-openvpn/luasrc/controller/openvpn.lua b/applications/luci-openvpn/luasrc/controller/openvpn.lua index 2b18c73c8..e86d9a6dd 100644 --- a/applications/luci-openvpn/luasrc/controller/openvpn.lua +++ b/applications/luci-openvpn/luasrc/controller/openvpn.lua @@ -10,7 +10,7 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -$Id: init.lua 3516 2008-10-04 18:42:06Z jow $ +$Id$ ]]-- module("luci.controller.openvpn", package.seeall) @@ -18,11 +18,7 @@ function index() require("luci.i18n") luci.i18n.loadc("openvpn") - local p = entry( - {"admin", "services", "openvpn"}, cbi("openvpn"), - luci.i18n.translate("openvpn", "OpenVPN") - ) - - p.i18n = "openvpn" - p.leaf = true + entry( {"admin", "services", "openvpn"}, cbi("openvpn"), luci.i18n.translate("openvpn", "OpenVPN") ).i18n = "openvpn" + entry( {"admin", "services", "openvpn", "basic"}, cbi("openvpn-basic"), nil ).leaf = true + entry( {"admin", "services", "openvpn", "advanced"}, cbi("openvpn-advanced"), nil ).leaf = true end -- cgit v1.2.3