|
|
|
@ -2,14 +2,14 @@
|
|
|
|
|
module("luci.controller.filebrowser", package.seeall)
|
|
|
|
|
|
|
|
|
|
function index()
|
|
|
|
|
entry({"admin", "apps"}, firstchild(), _("Apps") , 45).dependent = false
|
|
|
|
|
entry({"admin", "nas"}, firstchild(), _("Nas") , 45).dependent = false
|
|
|
|
|
if not nixio.fs.access("/etc/config/filebrowser") then
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local page = entry({"admin", "apps", "filebrowser"}, cbi("filebrowser"), _("Filebrowser"))
|
|
|
|
|
local page = entry({"admin", "nas", "filebrowser"}, cbi("filebrowser"), _("Filebrowser"))
|
|
|
|
|
page.order = 10
|
|
|
|
|
page.dependent = true
|
|
|
|
|
page.acl_depends = { "luci-app-filebrowser" }
|
|
|
|
|
entry({"admin","apps","filebrowser","status"},call("act_status")).leaf=true
|
|
|
|
|
entry({"admin","nas","filebrowser","status"},call("act_status")).leaf=true
|
|
|
|
|
end
|
|
|
|
|