luci-0.11: merge outstanding trunk changes
[project/luci.git] / applications / luci-polipo / luasrc / controller / polipo.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Aleksandar Krsteski <alekrsteski@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.polipo", package.seeall)
16
17 function index()
18 if not nixio.fs.access("/etc/config/polipo") then
19 return
20 end
21
22 entry({"admin", "services", "polipo"}, alias("admin", "services", "polipo", "config"), _("Polipo"))
23 entry({"admin", "services", "polipo", "status"}, template("polipo_status"), _("Status"))
24 entry({"admin", "services", "polipo", "config"}, cbi("polipo"), _("Configuration"))
25 end
26