From d3e060ae6c3698f9ae7089ad22faa85de60091fc Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 6 Aug 2019 16:03:29 +0200 Subject: luci-base: add vpn menu section There is always more vpn services. To make the LuCI menu look cleaner, a new top level menu "VPN" will be added with this commit. All luci-app-* that have something to do with VPN should move to this new menu entry. Signed-off-by: Florian Eckert --- modules/luci-base/luasrc/controller/admin/index.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/luci-base/luasrc/controller') diff --git a/modules/luci-base/luasrc/controller/admin/index.lua b/modules/luci-base/luasrc/controller/admin/index.lua index 9fcfe4a30..3f2b46587 100644 --- a/modules/luci-base/luasrc/controller/admin/index.lua +++ b/modules/luci-base/luasrc/controller/admin/index.lua @@ -50,6 +50,13 @@ function index() -- system/system is from mod-admin-full toplevel_page(page, "admin/system/system", alias("admin", "system", "system")) + -- Only used if applications add items + page = node("admin", "vpn") + page.title = _("VPN") + page.order = 30 + page.index = true + toplevel_page(page, false, false) + -- Only used if applications add items page = node("admin", "services") page.title = _("Services") -- cgit v1.2.3