1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00

Some menu changes

This commit is contained in:
Ycarus 2018-03-28 10:59:15 +02:00
parent 144e0f45b9
commit 0fa66693eb
7 changed files with 6 additions and 12 deletions

View file

@ -6,7 +6,6 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI Support for MPTCP LUCI_TITLE:=LuCI Support for MPTCP
PKG_LICENSE:=Apache-2.0 PKG_LICENSE:=Apache-2.0
include ../luci/luci.mk include ../luci/luci.mk

View file

@ -7,8 +7,8 @@ module("luci.controller.mptcp", package.seeall)
function index() function index()
entry({"admin", "network", "mptcp"}, alias("admin", "network", "mptcp", "settings"), _("MPTCP")) entry({"admin", "network", "mptcp"}, alias("admin", "network", "mptcp", "settings"), _("MPTCP"))
entry({"admin", "network", "mptcp", "settings"}, cbi("mptcp"), _("Settings"),2) entry({"admin", "network", "mptcp", "settings"}, cbi("mptcp"), _("Settings"),2).leaf = true
entry({"admin", "network", "mptcp", "bandwidth"}, template("multipath"), _("Bandwidth"), 3).leaf = true entry({"admin", "network", "mptcp", "bandwidth"}, template("mptcp/multipath"), _("Bandwidth"), 3).leaf = true
entry({"admin", "network", "mptcp", "multipath_bandwidth"}, call("multipath_bandwidth")).leaf = true entry({"admin", "network", "mptcp", "multipath_bandwidth"}, call("multipath_bandwidth")).leaf = true
entry({"admin", "network", "mptcp", "interface_bandwidth"}, call("interface_bandwidth")).leaf = true entry({"admin", "network", "mptcp", "interface_bandwidth"}, call("interface_bandwidth")).leaf = true
end end

View file

@ -1,7 +1,5 @@
module("luci.controller.nginx-ha", package.seeall) module("luci.controller.nginx-ha", package.seeall)
function index() function index()
entry( entry({"admin", "services", "nginx-ha"}, cbi("nginx-ha"), _("Nginx High Availability"))
{"admin", "services", "nginx-ha"},
cbi("nginx-ha"), _("Nginx High Availability"), 55)
end end

View file

@ -7,9 +7,7 @@ function index()
if not nixio.fs.access("/etc/config/omr-quota") then if not nixio.fs.access("/etc/config/omr-quota") then
return return
end end
local page local page
page = entry({"admin", "network", "quota"}, cbi("quota/quota"), _("Quota")) page = entry({"admin", "network", "quota"}, cbi("quota/quota"), _("Quota"))
page.dependent = true page.dependent = true
end end

View file

@ -1,7 +1,6 @@
module("luci.controller.omr-tracker", package.seeall) module("luci.controller.omr-tracker", package.seeall)
function index() function index()
entry( --entry({"admin", "openmptcprouter", "omr-tracker"}, cbi("omr-tracker"), _("OMR-Tracker"))
{"admin", "services", "omr-tracker"}, entry({"admin", "services", "omr-tracker"}, cbi("omr-tracker"), _("OMR-Tracker"))
cbi("omr-tracker"), _("OMR-Tracker"), 55)
end end

View file

@ -8,7 +8,7 @@ function index()
-- entry({"admin", "openmptcprouter"}, firstchild(), _("OpenMPTCProuter"), 19).index = true -- entry({"admin", "openmptcprouter"}, firstchild(), _("OpenMPTCProuter"), 19).index = true
-- entry({"admin", "openmptcprouter", "wizard"}, template("openmptcprouter/wizard"), _("Wizard"), 1).leaf = true -- entry({"admin", "openmptcprouter", "wizard"}, template("openmptcprouter/wizard"), _("Wizard"), 1).leaf = true
-- entry({"admin", "openmptcprouter", "wizard_add"}, post("wizard_add")).leaf = true -- entry({"admin", "openmptcprouter", "wizard_add"}, post("wizard_add")).leaf = true
entry({"admin", "system", "openmptcprouter"}, alias("admin", "system", "openmptcprouter", "wizard"), _("OpenMPTCProuter")) entry({"admin", "system", "openmptcprouter"}, alias("admin", "system", "openmptcprouter", "wizard"), _("OpenMPTCProuter"), 1)
entry({"admin", "system", "openmptcprouter", "wizard"}, template("openmptcprouter/wizard"), _("Settings Wizard"), 1) entry({"admin", "system", "openmptcprouter", "wizard"}, template("openmptcprouter/wizard"), _("Settings Wizard"), 1)
entry({"admin", "system", "openmptcprouter", "wizard_add"}, post("wizard_add")) entry({"admin", "system", "openmptcprouter", "wizard_add"}, post("wizard_add"))
entry({"admin", "system", "openmptcprouter", "status"}, template("openmptcprouter/wanstatus"), _("Status"), 2).leaf = true entry({"admin", "system", "openmptcprouter", "status"}, template("openmptcprouter/wanstatus"), _("Status"), 2).leaf = true