applications: add freifunk widgets app to customize the index page
[project/luci.git] / applications / luci-freifunk-widgets / luasrc / model / cbi / freifunk / widgets / rssfeed.lua
1 local map, section = ...
2 local utl = require "luci.util"
3
4 local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua")
5 if form then
6 setfenv(form, getfenv(1))(m, wdg)
7 end
8
9 local url = wdg:option(Value, "url", translate("URL"))
10 url.default = "http://global.freifunk.net/rss/all/rss.xml"
11
12 local max = wdg:option(Value, "max", translate("Maximal entries to show"))
13 max.rmempty = true
14 max.default = "10"
15 max.datatype = "integer"
16
17 local cache = wdg:option(Value, "cache", translate("Cache Time"), translate("Cache downloaded feed for that many seconds."))
18 cache.rmempty = true
19 cache.default = "3600"
20 cache.datatype = "integer"
21
22