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