summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ksmbd/htdocs/luci-static
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-08-12 08:38:46 +0200
committerGitHub <noreply@github.com>2021-08-12 08:38:46 +0200
commitfd2f2dc7a9ab510e0d7d3263e249ad4e02ed54f3 (patch)
treeb3ab456f8439c873ade8d56b5c499052ad81bf36 /applications/luci-app-ksmbd/htdocs/luci-static
parent22a36a49f42430c2afff9d7bca84aab716a2fa00 (diff)
parenta624647c2a5dec79b5e4869144ec91f31861225c (diff)
Merge pull request #5263 from selanf/b1
Diffstat (limited to 'applications/luci-app-ksmbd/htdocs/luci-static')
-rw-r--r--applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js b/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js
index 4a9de896f9..47b4bc0ff5 100644
--- a/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js
+++ b/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js
@@ -14,22 +14,23 @@ return view.extend({
]);
},
render: function(stats) {
- var m, s, o, v;
- v = '';
+ var m, s, o, v, v2;
+ v = '?';
+ v2 = '?';
m = new form.Map('ksmbd', _('Network Shares'));
- if (stats[2]) {
+ if (stats[2])
v = stats[2].trim();
- }
- if (stats[3]) {
- v = v + ' Kmod: ' + stats[3].trim();
- }
- s = m.section(form.TypedSection, 'globals', 'Ksmbd: ' + v);
+ if (stats[3])
+ v2 = stats[3].trim();
+ if (v != v2)
+ v = v +'/'+ v2;
+ s = m.section(form.TypedSection, 'globals', 'Ksmbd/Kmod Version ' + v);
s.anonymous = true;
s.tab('general', _('General Settings'));
- s.tab('template', _('Edit Template'));
+ s.tab('template', _('Edit Template'), _('Edit the template that is used for generating the ksmbd configuration.'));
s.taboption('general', widgets.NetworkSelect, 'interface', _('Interface'),
_('Listen only on the given interface or, if unspecified, on lan'));
@@ -44,7 +45,7 @@ return view.extend({
_('Allow legacy smb(v1)/Lanman connections, needed for older devices without smb(v2.1/3) support.'));
o = s.taboption('template', form.TextValue, '_tmpl',
- _('Edit the template that is used for generating the ksmbd configuration.'),
+ null,
_("This is the content of the file '/etc/ksmbd/smb.conf.template' from which your ksmbd configuration will be generated. \
Values enclosed by pipe symbols ('|') should not be changed. They get their values from the 'General Settings' tab."));
o.rows = 20;