summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-openvpn/luasrc/controller/openvpn.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-10-09 22:24:21 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-10-09 22:24:21 +0000
commit7fe7d6d5e654d2092f89d81b0e1627fb99eb1a74 (patch)
tree42f908c838a40c252943469fdf9326228be494cb /applications/luci-openvpn/luasrc/controller/openvpn.lua
parent8815b6a7dd24a481606db03c5980bc310709a103 (diff)
* luci/app/openvpn: controller, model and template updates
Diffstat (limited to 'applications/luci-openvpn/luasrc/controller/openvpn.lua')
-rw-r--r--applications/luci-openvpn/luasrc/controller/openvpn.lua12
1 files changed, 4 insertions, 8 deletions
diff --git a/applications/luci-openvpn/luasrc/controller/openvpn.lua b/applications/luci-openvpn/luasrc/controller/openvpn.lua
index 2b18c73c8e..e86d9a6dd1 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