polipo.lua 533 B

123456789101112131415
  1. -- Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.controller.polipo", package.seeall)
  4. function index()
  5. if not nixio.fs.access("/etc/config/polipo") then
  6. return
  7. end
  8. entry({"admin", "services", "polipo"}, alias("admin", "services", "polipo", "config"), _("Polipo"))
  9. entry({"admin", "services", "polipo", "status"}, template("polipo_status"), _("Status"))
  10. entry({"admin", "services", "polipo", "config"}, cbi("polipo"), _("Configuration"))
  11. end