autoupdater.lua 737 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. LuCI - Lua Configuration Interface
  3. Copyright 2013 Nils Schneider <nils@nilsschneider.net>
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. $Id$
  9. ]]--
  10. m = Map("autoupdater", translate("Automatic updates"))
  11. m.pageaction = false
  12. m.template = "admin/expertmode"
  13. s = m:section(TypedSection, "autoupdater", nil)
  14. s.addremove = false
  15. s.anonymous = true
  16. s:option(Flag, "enabled", translate("Enable"))
  17. f = s:option(ListValue, "branch", translate("Branch"))
  18. uci.cursor():foreach("autoupdater", "branch", function (section) f:value(section[".name"]) end)
  19. return m