Rework LuCI build system
[project/luci.git] / applications / luci-app-olsr / luasrc / model / cbi / olsr / olsrddisplay.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2011 Manuel Munz <freifunk at somakoma de>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11 ]]--
12
13 m = Map("luci_olsr", translate("OLSR - Display Options"))
14
15 s = m:section(TypedSection, "olsr")
16 s.anonymous = true
17
18 res = s:option(Flag, "resolve", translate("Resolve"),
19 translate("Resolve hostnames on status pages. It is generally safe to allow this, but if you use public IPs and have unstable DNS-Setup then those pages will load really slow. In this case disable it here."))
20 res.default = "0"
21 res.optional = true
22
23 return m