summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-transmission/luasrc/controller/transmission.lua
blob: b54b92b04bb7ed760c9d263fa4001de95d15fc13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- Copyright 2012 Gabor Varga <vargagab@gmail.com>
-- Licensed to the public under the Apache License 2.0.

module("luci.controller.transmission", package.seeall)

function index()
	if not nixio.fs.access("/etc/config/transmission") then
		return
	end

	local page = entry({"admin", "services", "transmission"}, cbi("transmission"), _("Transmission"))
	page.dependent = true

end