1 -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
2 -- Licensed to the public under the Apache License 2.0.
4 local map, section = ...
5 local utl = require "luci.util"
7 local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua")
9 setfenv(form, getfenv(1))(m, wdg)
12 local url = wdg:option(Value, "url", translate("URL"))
13 url.default = "http://global.freifunk.net/rss/all/rss.xml"
15 local max = wdg:option(Value, "max", translate("Maximal entries to show"))
18 max.datatype = "integer"
20 local cache = wdg:option(Value, "cache", translate("Cache Time"), translate("Cache downloaded feed for that many seconds."))
22 cache.default = "3600"
23 cache.datatype = "integer"