diff options
author | Dirk Brenken <dev@brenken.org> | 2019-08-15 10:32:59 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2019-08-15 11:36:48 +0200 |
commit | 9400fc7536399d38fb81a43a49911f0248a15e7b (patch) | |
tree | 4f8bf6f6c84c59107d5d912b1188ea0cb3332d2a /applications/luci-app-adblock/luasrc/view/adblock | |
parent | f929298318fb755b05fe53b33971662d9df18211 (diff) |
luci-app-adblock: sync with adblock 3.8.0
* add support for the 'null' blocking variant in dnsmasq
(via addn-hosts), see new select box 'DNS Variant'
* add support for 'DNS File Reset', where the final DNS blockfile
will be purged after DNS backend loading (save storage space)
* Provide additional Runtime information:
'DNS Variant' and 'Backup Directory'
* add E-Mail notification options to LuCI
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/luasrc/view/adblock')
-rw-r--r-- | applications/luci-app-adblock/luasrc/view/adblock/runtime.htm | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm index 72e2b0d36..b5cf83291 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm @@ -1,5 +1,5 @@ <%# -Copyright 2017-2018 Dirk Brenken (dev@brenken.org) +Copyright 2017-2019 Dirk Brenken (dev@brenken.org) This is free software, licensed under the Apache License, Version 2.0 -%> @@ -50,8 +50,10 @@ This is free software, licensed under the Apache License, Version 2.0 document.getElementById("value_2").innerHTML = json.data.adblock_version || "-"; document.getElementById("value_3").innerHTML = json.data.fetch_utility || "-"; document.getElementById("value_4").innerHTML = json.data.dns_backend || "-"; - document.getElementById("value_5").innerHTML = json.data.overall_domains || "-"; - document.getElementById("value_6").innerHTML = json.data.last_rundate || "-"; + document.getElementById("value_5").innerHTML = json.data.dns_variant || "-"; + document.getElementById("value_6").innerHTML = json.data.backup_dir || "-"; + document.getElementById("value_7").innerHTML = json.data.overall_domains || "-"; + document.getElementById("value_8").innerHTML = json.data.last_rundate || "-"; } function btn_action(action) @@ -110,6 +112,8 @@ This is free software, licensed under the Apache License, Version 2.0 document.getElementById("value_4").innerHTML = "-"; document.getElementById("value_5").innerHTML = "-"; document.getElementById("value_6").innerHTML = "-"; + document.getElementById("value_7").innerHTML = "-"; + document.getElementById("value_8").innerHTML = "-"; } XHR.get('<%=luci.dispatcher.build_url("admin", "services", "adblock", "status_update")%>', null, @@ -156,23 +160,35 @@ This is free software, licensed under the Apache License, Version 2.0 </div> </div> <div class="cbi-value" id="status_4"> - <label class="cbi-value-title" for="status_4"><%:DNS Backend (DNS Directory)%></label> + <label class="cbi-value-title" for="status_4"><%:DNS Backend, DNS Directory%></label> <div class="cbi-value-field"> <span class="runtime" id="value_4">-</span> </div> </div> <div class="cbi-value" id="status_5"> - <label class="cbi-value-title" for="status_5"><%:Overall Domains%></label> + <label class="cbi-value-title" for="status_5"><%:DNS Variant, DNS File Reset%></label> <div class="cbi-value-field"> <span class="runtime" id="value_5">-</span> </div> </div> <div class="cbi-value" id="status_6"> - <label class="cbi-value-title" for="status_6"><%:Last Run%></label> + <label class="cbi-value-title" for="status_6"><%:Backup Directory%></label> <div class="cbi-value-field"> <span class="runtime" id="value_6">-</span> </div> </div> +<div class="cbi-value" id="status_7"> + <label class="cbi-value-title" for="status_7"><%:Overall Domains%></label> + <div class="cbi-value-field"> + <span class="runtime" id="value_7">-</span> + </div> +</div> +<div class="cbi-value" id="status_8"> + <label class="cbi-value-title" for="status_8"><%:Last Run%></label> + <div class="cbi-value-field"> + <span class="runtime" id="value_8">-</span> + </div> +</div> <hr /> <div class="cbi-value" id="button_1"> <label class="cbi-value-title" for="button_1"><%:Suspend / Resume Adblock%></label> |