autocore: ethinfo: adapt LuCI style again

Fixes: a0cd2caca3 ("autocore: ethinfo: adapt LuCI style")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
zxlhhyccc 2021-04-12 00:13:33 +08:00 committed by Tianling Shen
parent a0cd2caca3
commit 1797d6a0ab
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -19,12 +19,12 @@ return L.Class.extend({
render: function(data) {
var ethinfo = Array.isArray(data[0].ethinfo) ? data[0].ethinfo : [];
var table = E('td', { 'class': 'table' }, [
var table = E('table', { 'class': 'table' }, [
E('tr', { 'class': 'tr table-titles' }, [
E('td', { 'class': 'th' }, _('Ethernet Name')),
E('td', { 'class': 'th' }, _('Link Status')),
E('td', { 'class': 'th' }, _('Speed')),
E('td', { 'class': 'th' }, _('Duplex'))
E('th', { 'class': 'th' }, _('Ethernet Name')),
E('th', { 'class': 'th' }, _('Link Status')),
E('th', { 'class': 'th' }, _('Speed')),
E('th', { 'class': 'th' }, _('Duplex'))
])
]);