Merge pull request #1124 from dibdot/app-adblock
authorHannu Nyman <hannu.nyman@iki.fi>
Wed, 26 Apr 2017 11:52:16 +0000 (14:52 +0300)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2017 11:52:16 +0000 (14:52 +0300)
luci-app-adblock: sync with 2.6.1

applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua
applications/luci-app-adblock/luasrc/model/cbi/adblock/configuration_tab.lua
applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua
applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua

index 7945aa1..d540c77 100644 (file)
@@ -13,6 +13,7 @@ end
 
 m = SimpleForm("input", nil)
 m:append(Template("adblock/config_css"))
+m.reset = false
 
 s = m:section(SimpleSection, nil,
        translatef("This form allows you to modify the content of the adblock blacklist (%s).<br />", adbinput)
index ec88e5f..1b83c94 100644 (file)
@@ -12,6 +12,7 @@ end
 
 m = SimpleForm("input", nil)
 m:append(Template("adblock/config_css"))
+m.reset = false
 
 s = m:section(SimpleSection, nil,
        translate("This form allows you to modify the content of the main adblock configuration file (/etc/config/adblock)."))
index fbc09b1..46eeeb3 100644 (file)
@@ -17,6 +17,7 @@ m = Map("adblock", translate("Adblock"),
        .. translate("see online documentation")
        .. [[</a>]]
        .. translate("."))
+m.reset = false
 
 -- Main adblock options
 
@@ -137,16 +138,27 @@ end
 
 des = bl:option(DummyValue, "adb_src_desc", translate("Description"))
 
--- Backup options
+-- Extra options
 
-s = m:section(NamedSection, "global", "adblock", translate("Backup options"))
+e = m:section(NamedSection, "global", "adblock", translate("Extra options"),
+       translate("Options for further tweaking in case the defaults are not suitable for you."))
 
-o5 = s:option(Flag, "adb_backup", translate("Enable blocklist backup"))
-o5.default = o5.disabled
-o5.rmempty = false
+e1 = e:option(Flag, "adb_forcedns", translate("Force local DNS"),
+       translate("Redirect all DNS queries to the local resolver."))
+e1.default = e1.disabled
+e1.rmempty = false
 
-o6 = s:option(Value, "adb_backupdir", translate("Backup directory"))
-o6.datatype = "directory"
-o6.rmempty = false
+e2 = e:option(Flag, "adb_forcesrt", translate("Force Overall Sort"),
+       translate("Enable memory intense overall sort / duplicate removal on low memory devices (< 64 MB RAM)"))
+e2.default = e2.disabled
+e2.rmempty = false
+
+e3 = e:option(Flag, "adb_backup", translate("Enable blocklist backup"))
+e3.default = e3.disabled
+e3.rmempty = false
+
+e4 = e:option(Value, "adb_backupdir", translate("Backup directory"))
+e4.datatype = "directory"
+e4.rmempty = false
 
 return m
index 9e087a6..23c99a9 100644 (file)
@@ -13,6 +13,7 @@ end
 
 m = SimpleForm("input", nil)
 m:append(Template("adblock/config_css"))
+m.reset = false
 
 s = m:section(SimpleSection, nil,
        translatef("This form allows you to modify the content of the adblock whitelist (%s).<br />", adbinput)