summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-polipo/luasrc/controller/polipo.lua
blob: b3ae3898014da95119e594addc44b8d3e0b1032a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com>
-- Licensed to the public under the Apache License 2.0.

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

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

	entry({"admin", "services", "polipo"}, alias("admin", "services", "polipo", "config"), _("Polipo"))
	entry({"admin", "services", "polipo", "status"}, template("polipo_status"), _("Status"))
	entry({"admin", "services", "polipo", "config"}, cbi("polipo"), _("Configuration"))
end