|
|
@ -2,12 +2,12 @@
|
|
|
|
module("luci.controller.seafile", package.seeall)
|
|
|
|
module("luci.controller.seafile", package.seeall)
|
|
|
|
|
|
|
|
|
|
|
|
function index()
|
|
|
|
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/seafile") then
|
|
|
|
if not nixio.fs.access("/etc/config/seafile") then
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local page = entry({"admin", "apps", "seafile"}, cbi("seafile"), _("seafile"))
|
|
|
|
local page = entry({"admin", "nas", "seafile"}, cbi("seafile"), _("Seafile"))
|
|
|
|
page.order = 10
|
|
|
|
page.order = 10
|
|
|
|
page.dependent = true
|
|
|
|
page.dependent = true
|
|
|
|
page.acl_depends = { "luci-app-seafile" }
|
|
|
|
page.acl_depends = { "luci-app-seafile" }
|
|
|
|