ksmbd: fix the layout of textbox
without this, only 50% of screen where used also show version only 1 time if Ksmbd/Kmod versions match Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
This commit is contained in:
parent
b5af813318
commit
a624647c2a
1 changed files with 11 additions and 10 deletions
|
@ -14,22 +14,23 @@ return view.extend({
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
render: function(stats) {
|
render: function(stats) {
|
||||||
var m, s, o, v;
|
var m, s, o, v, v2;
|
||||||
v = '';
|
v = '?';
|
||||||
|
v2 = '?';
|
||||||
|
|
||||||
m = new form.Map('ksmbd', _('Network Shares'));
|
m = new form.Map('ksmbd', _('Network Shares'));
|
||||||
|
|
||||||
if (stats[2]) {
|
if (stats[2])
|
||||||
v = stats[2].trim();
|
v = stats[2].trim();
|
||||||
}
|
if (stats[3])
|
||||||
if (stats[3]) {
|
v2 = stats[3].trim();
|
||||||
v = v + ' Kmod: ' + stats[3].trim();
|
if (v != v2)
|
||||||
}
|
v = v +'/'+ v2;
|
||||||
s = m.section(form.TypedSection, 'globals', 'Ksmbd: ' + v);
|
s = m.section(form.TypedSection, 'globals', 'Ksmbd/Kmod Version ' + v);
|
||||||
s.anonymous = true;
|
s.anonymous = true;
|
||||||
|
|
||||||
s.tab('general', _('General Settings'));
|
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'),
|
s.taboption('general', widgets.NetworkSelect, 'interface', _('Interface'),
|
||||||
_('Listen only on the given interface or, if unspecified, on lan'));
|
_('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.'));
|
_('Allow legacy smb(v1)/Lanman connections, needed for older devices without smb(v2.1/3) support.'));
|
||||||
|
|
||||||
o = s.taboption('template', form.TextValue, '_tmpl',
|
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. \
|
_("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."));
|
Values enclosed by pipe symbols ('|') should not be changed. They get their values from the 'General Settings' tab."));
|
||||||
o.rows = 20;
|
o.rows = 20;
|
||||||
|
|
Loading…
Reference in a new issue