summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-rw-r--r--modules/admin-full/luasrc/controller/admin/index.lua3
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua4
-rw-r--r--modules/admin-full/luasrc/controller/admin/services.lua1
-rw-r--r--modules/admin-full/luasrc/controller/admin/status.lua2
-rw-r--r--modules/admin-full/luasrc/controller/admin/system.lua2
5 files changed, 10 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/index.lua b/modules/admin-full/luasrc/controller/admin/index.lua
index cab9441d0..071dd595d 100644
--- a/modules/admin-full/luasrc/controller/admin/index.lua
+++ b/modules/admin-full/luasrc/controller/admin/index.lua
@@ -20,6 +20,7 @@ function index()
local root = node()
if not root.target then
root.target = alias("admin")
+ root.index = true
end
entry({"about"}, template("about")).i18n = "admin-core"
@@ -32,11 +33,13 @@ function index()
page.sysauth = "root"
page.sysauth_authenticator = "htmlauth"
page.ucidata = true
+ page.index = true
local page = node("admin", "index")
page.target = template("admin_index/index")
page.title = i18n("overview", "Übersicht")
page.order = 10
+ page.index = true
local page = node("admin", "index", "luci")
page.target = cbi("admin_index/luci")
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua
index e3f80a1b1..778a70fb9 100644
--- a/modules/admin-full/luasrc/controller/admin/network.lua
+++ b/modules/admin-full/luasrc/controller/admin/network.lua
@@ -22,6 +22,7 @@ function index()
page.target = alias("admin", "network", "network")
page.title = i18n("network")
page.order = 50
+ page.index = true
local page = node("admin", "network", "vlan")
page.target = cbi("admin_network/vlan")
@@ -33,6 +34,7 @@ function index()
page.title = i18n("wifi")
page.i18n = "wifi"
page.order = 15
+ page.subindex = true
uci:foreach("wireless", "wifi-device",
function (section)
local ifc = section[".name"]
@@ -51,6 +53,7 @@ function index()
page.target = cbi("admin_network/network")
page.title = i18n("interfaces", "Schnittstellen")
page.order = 10
+ page.subindex = true
uci:foreach("network", "interface",
function (section)
local ifc = section[".name"]
@@ -70,6 +73,7 @@ function index()
page.target = cbi("admin_network/dhcp")
page.title = "DHCP"
page.order = 30
+ page.subindex = true
entry(
{"admin", "network", "dhcp", "leases"},
diff --git a/modules/admin-full/luasrc/controller/admin/services.lua b/modules/admin-full/luasrc/controller/admin/services.lua
index ea8758544..f7bdb02d5 100644
--- a/modules/admin-full/luasrc/controller/admin/services.lua
+++ b/modules/admin-full/luasrc/controller/admin/services.lua
@@ -26,6 +26,7 @@ function index()
page.target = template("admin_services/index")
page.title = i18n("services", "Dienste")
page.order = 40
+ page.index = true
local page = node("admin", "services", "httpd")
page.target = cbi("admin_services/httpd")
diff --git a/modules/admin-full/luasrc/controller/admin/status.lua b/modules/admin-full/luasrc/controller/admin/status.lua
index 0eb3c1964..addc3ca74 100644
--- a/modules/admin-full/luasrc/controller/admin/status.lua
+++ b/modules/admin-full/luasrc/controller/admin/status.lua
@@ -17,7 +17,7 @@ function index()
luci.i18n.loadc("admin-core")
local i18n = luci.i18n.translate
- entry({"admin", "status"}, template("admin_status/index"), i18n("status", "Status"), 20)
+ entry({"admin", "status"}, template("admin_status/index"), i18n("status", "Status"), 20).index = true
entry({"admin", "status", "syslog"}, call("action_syslog"), i18n("syslog", "Systemprotokoll"))
end
diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua
index 5d6037151..1afdfc55e 100644
--- a/modules/admin-full/luasrc/controller/admin/system.lua
+++ b/modules/admin-full/luasrc/controller/admin/system.lua
@@ -17,7 +17,7 @@ function index()
luci.i18n.loadc("admin-core")
local i18n = luci.i18n.translate
- entry({"admin", "system"}, alias("admin", "system", "system"), i18n("system"), 30)
+ entry({"admin", "system"}, alias("admin", "system", "system"), i18n("system"), 30).index = true
entry({"admin", "system", "system"}, cbi("admin_system/system"), i18n("system"), 1)
entry({"admin", "system", "packages"}, call("action_packages"), i18n("a_s_packages"), 10)
entry({"admin", "system", "packages", "ipkg"}, form("admin_system/ipkg"), i18n("a_s_p_ipkg"))