autocore: ethinfo: adapt LuCI style

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
zxlhhyccc 2021-04-11 22:41:49 +08:00 committed by Tianling Shen
parent 832bcc7e2f
commit a0cd2caca3
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('div', { 'class': 'table' }, [
E('div', { 'class': 'tr table-titles' }, [
E('div', { 'class': 'th' }, _('Ethernet Name')),
E('div', { 'class': 'th' }, _('Link Status')),
E('div', { 'class': 'th' }, _('Speed')),
E('div', { 'class': 'th' }, _('Duplex'))
var table = E('td', { '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'))
])
]);