summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-19 16:31:09 +0000
committerSteven Barth <steven@midlink.org>2008-07-19 16:31:09 +0000
commit543dd521599ff715ff62b12d7e7c810da1790c2f (patch)
tree35ebd9562e37b156220348bd17a7099517f81be4 /modules
parent447df436fc1d6d788fc5d7ad245fae46c7f3732c (diff)
modules/admin-mini: Add "general" submenu links
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-mini/luasrc/controller/mini/index.lua3
-rw-r--r--modules/admin-mini/luasrc/controller/mini/network.lua3
-rw-r--r--modules/admin-mini/luasrc/controller/mini/system.lua3
-rw-r--r--modules/admin-mini/luasrc/controller/mini/wifi.lua3
4 files changed, 8 insertions, 4 deletions
diff --git a/modules/admin-mini/luasrc/controller/mini/index.lua b/modules/admin-mini/luasrc/controller/mini/index.lua
index 08587acb8..fd960bb1b 100644
--- a/modules/admin-mini/luasrc/controller/mini/index.lua
+++ b/modules/admin-mini/luasrc/controller/mini/index.lua
@@ -31,7 +31,8 @@ function index()
page.sysauth = "root"
page.ucidata = true
- entry({"mini", "index"}, template("mini/index"), i18n("overview"), 10)
+ entry({"mini", "index"}, alias("mini", "index", "index"), i18n("overview"), 10)
+ entry({"mini", "index", "index"}, template("mini/index"), i18n("general"), 1)
entry({"mini", "index", "luci"}, cbi("mini/luci"), i18n("settings"), 10)
entry({"mini", "index", "logout"}, call("action_logout"), i18n("logout"))
end
diff --git a/modules/admin-mini/luasrc/controller/mini/network.lua b/modules/admin-mini/luasrc/controller/mini/network.lua
index 838bc9b95..5bd587daf 100644
--- a/modules/admin-mini/luasrc/controller/mini/network.lua
+++ b/modules/admin-mini/luasrc/controller/mini/network.lua
@@ -19,6 +19,7 @@ function index()
luci.i18n.loadc("admin-core")
local i18n = luci.i18n.translate
- entry({"mini", "network"}, cbi("mini/network"), i18n("network"), 20)
+ entry({"mini", "network"}, alias("mini", "network", "index"), i18n("network"), 20)
+ entry({"mini", "network", "index"}, cbi("mini/network"), i18n("general"), 1)
entry({"mini", "network", "dhcp"}, cbi("mini/dhcp"), "DHCP", 20)
end \ No newline at end of file
diff --git a/modules/admin-mini/luasrc/controller/mini/system.lua b/modules/admin-mini/luasrc/controller/mini/system.lua
index b24c1c065..a4a07a672 100644
--- a/modules/admin-mini/luasrc/controller/mini/system.lua
+++ b/modules/admin-mini/luasrc/controller/mini/system.lua
@@ -19,7 +19,8 @@ function index()
luci.i18n.loadc("admin-core")
local i18n = luci.i18n.translate
- entry({"mini", "system"}, cbi("mini/system"), i18n("system"))
+ entry({"mini", "system"}, alias("mini", "system", "index"), i18n("system"), 40)
+ entry({"mini", "system", "index"}, cbi("mini/system"), i18n("general"), 1)
entry({"mini", "system", "passwd"}, call("action_passwd"), i18n("a_s_changepw"), 10)
entry({"mini", "system", "upgrade"}, call("action_upgrade"), i18n("a_s_flash"), 90)
entry({"mini", "system", "reboot"}, call("action_reboot"), i18n("reboot"), 100)
diff --git a/modules/admin-mini/luasrc/controller/mini/wifi.lua b/modules/admin-mini/luasrc/controller/mini/wifi.lua
index 1fa8c2a71..e879a2c7e 100644
--- a/modules/admin-mini/luasrc/controller/mini/wifi.lua
+++ b/modules/admin-mini/luasrc/controller/mini/wifi.lua
@@ -18,6 +18,7 @@ function index()
luci.i18n.loadc("admin-core")
local i18n = luci.i18n.translate
- entry({"mini", "wifi"}, cbi("mini/wifi"), i18n("wifi"), 30)
+ entry({"mini", "wifi"}, alias("mini", "wifi", "index"), i18n("wifi"), 30)
+ entry({"mini", "wifi", "index"}, cbi("mini/wifi"), i18n("general"), 1)
entry({"mini", "wifi", "scan"}, template("mini/iwscan"), i18n("wlanscan"), 10)
end \ No newline at end of file