Globally reduce copyright headers
[project/luci.git] / applications / luci-app-freifunk-widgets / luasrc / model / cbi / freifunk / widgets / rssfeed.lua
1 -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
2 -- Licensed to the public under the Apache License 2.0.
3
4 local map, section = ...
5 local utl = require "luci.util"
6
7 local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua")
8 if form then
9         setfenv(form, getfenv(1))(m, wdg)
10 end
11
12 local url = wdg:option(Value, "url", translate("URL"))
13 url.default = "http://global.freifunk.net/rss/all/rss.xml"
14
15 local max = wdg:option(Value, "max", translate("Maximal entries to show"))
16 max.rmempty = true
17 max.default = "10"
18 max.datatype = "integer"
19
20 local cache = wdg:option(Value, "cache", translate("Cache Time"), translate("Cache downloaded feed for that many seconds."))
21 cache.rmempty = true
22 cache.default = "3600"
23 cache.datatype = "integer"
24
25