luci-mod-status: add missing cbi-section class to routing view

With the material theme, there is a gap between the tab view and the
content. The css class 'cbi-section' is missing here in the data-tab div.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2023-01-26 10:24:38 +01:00
parent 46b20dc84d
commit 025d8e79ba

View file

@ -248,7 +248,7 @@ return view.extend({
E('h2', {}, [ _('Routing') ]), E('h2', {}, [ _('Routing') ]),
E('p', {}, [ _('The following rules are currently active on this system.') ]), E('p', {}, [ _('The following rules are currently active on this system.') ]),
E('div', {}, [ E('div', {}, [
E('div', { 'data-tab': 'ipv4routing', 'data-tab-title': _('IPv4 Routing') }, [ E('div', { 'class': 'cbi-section', 'data-tab': 'ipv4routing', 'data-tab-title': _('IPv4 Routing') }, [
E('h3', {}, [ _('IPv4 Neighbours') ]), E('h3', {}, [ _('IPv4 Neighbours') ]),
neigh4tbl, neigh4tbl,
@ -258,7 +258,7 @@ return view.extend({
E('h3', {}, [ _('Active IPv4 Rules') ]), E('h3', {}, [ _('Active IPv4 Rules') ]),
rule4tbl rule4tbl
]), ]),
E('div', { 'data-tab': 'ipv6routing', 'data-tab-title': _('IPv6 Routing') }, [ E('div', { 'class': 'cbi-section', 'data-tab': 'ipv6routing', 'data-tab-title': _('IPv6 Routing') }, [
E('h3', {}, [ _('IPv6 Neighbours') ]), E('h3', {}, [ _('IPv6 Neighbours') ]),
neigh6tbl, neigh6tbl,