diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/settings.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/settings.js
index 0e9efa4..fa641d6 100644
--- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/settings.js
+++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/settings.js
@@ -105,10 +105,13 @@ return view.extend({
tabname = 'nfqws_params';
s.tab(tabname, _('NFQWS options'));
- let add_delim = function(sec) {
+ let add_delim = function(sec, url = null) {
let o = sec.taboption(tabname, form.DummyValue, '_hr');
o.rawhtml = true;
o.default = '
';
+ if (url) {
+ o.default += '
' + _('Help') + ': %s'.format(url);
+ }
};
let add_param = function(sec, param, locname = null, rows = 10, multiline = false) {
@@ -140,7 +143,11 @@ return view.extend({
val.validate = function(section_id, value) {
return (value) ? value.trim() : "";
};
- btn.onclick = () => new tools.longstrEditDialog('config', param, param, locname, rows, multiline).show();
+ let desc = locname;
+ if (multiline == 2) {
+ desc += '
' + _('Example') + ': %s'.format(tools.nfqws_opt_url);
+ }
+ btn.onclick = () => new tools.longstrEditDialog('config', param, param, desc, rows, multiline).show();
};
o = s.taboption(tabname, form.Flag, 'NFQWS_ENABLE', _('NFQWS_ENABLE'));
@@ -189,7 +196,7 @@ return view.extend({
o.rmempty = false;
o.datatype = 'uinteger';
- add_delim(s);
+ add_delim(s, tools.nfqws_opt_url);
add_param(s, 'NFQWS_OPT', null, 21, 2);
/* AutoHostList settings */
diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js
index 80274ea..da13a0c 100644
--- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js
+++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js
@@ -53,6 +53,7 @@ return baseclass.extend({
customdFileFormat : '/opt/zapret/init.d/openwrt/custom.d/%s-script.sh',
discord_num : 50,
discord_url : 'https://github.com/bol-van/zapret/blob/4e8e3a9ed9dbeb1156db68dfaa7b353051c13797/init.d/custom.d.examples.linux/50-discord',
+ nfqws_opt_url : 'https://github.com/remittor/zapret-openwrt/discussions/168',
autoHostListFN : '/opt/zapret/ipset/zapret-hosts-auto.txt',
autoHostListDbgFN : '/opt/zapret/ipset/zapret-hosts-auto-debug.log',