a5bcd644fb31271524a775d335d55f00c1266475
[project/luci.git] / applications / luci-transmission / luasrc / controller / transmission.lua
1 --[[
2 LuCI - Lua Configuration Interface - Transmission support
3
4 Copyright 2012 Gabor Varga <vargagab@gmail.com>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 module("luci.controller.transmission", package.seeall)
16
17 function index()
18 require("luci.i18n")
19 luci.i18n.loadc("transmission")
20 if not nixio.fs.access("/etc/config/transmission") then
21 return
22 end
23
24 local page = entry({"admin", "services", "transmission"}, cbi("transmission"), _("Transmission"))
25 page.i18n = "transmission"
26 page.dependent = true
27
28 end