var container_wapper = E('div', { 'class': 'router-status-lan dashboard-bg box-s1' });
var container_box = E('div', { 'class': 'lan-info devices-list' });
- var container_devices = E('table', { 'class': 'table assoclist devices-info' }, [
- E('tr', { 'class': 'tr table-titles dashboard-bg' }, [
- E('th', { 'class': 'th nowrap' }, _('Hostname')),
- E('th', { 'class': 'th' }, _('IP Address')),
- E('th', { 'class': 'th' }, _('MAC')),
- ])
- ]);
-
- var container_deviceslist = E('table', { 'class': 'table assoclist devices-info' });
-
container_box.appendChild(E('div', { 'class': 'title'}, [
E('img', {
'src': L.resource('view/dashboard/icons/devices.svg'),
E('h3', this.title)
]));
+ var container_devices = E('table', { 'class': 'table assoclist devices-info' }, [
+ E('tr', { 'class': 'tr dashboard-bg' }, [
+ E('th', { 'class': 'th nowrap' }, _('Hostname')),
+ E('th', { 'class': 'th' }, _('IP Address')),
+ E('th', { 'class': 'th' }, _('MAC')),
+ ])
+ ]);
+
for(var idx in this.params.lan.devices) {
var device = this.params.lan.devices[idx];
- container_deviceslist.appendChild(E('tr', { 'class': 'tr cbi-rowstyle-1'}, [
+ container_devices.appendChild(E('tr', { 'class': 'tr cbi-rowstyle-1'}, [
E('td', { 'class': 'td device-info'}, [
E('p', {}, [
]));
}
- container_box.appendChild(E('hr'));
container_box.appendChild(container_devices);
- container_box.appendChild(E('hr'));
- container_box.appendChild(container_deviceslist);
container_wapper.appendChild(container_box);
return container_wapper;
E('h3', this.title)
]));
- container_box.appendChild(E('hr'));
-
for (var i =0; i < this.params.wifi.radios.length; i++) {
container_radio_item = E('div', { 'class': 'radio-info' })
container_box.appendChild(container_radio);
var container_devices = E('table', { 'class': 'table assoclist devices-info' }, [
- E('tr', { 'class': 'tr table-titles dashboard-bg' }, [
+ E('tr', { 'class': 'tr dashboard-bg' }, [
E('th', { 'class': 'th nowrap' }, _('Hostname')),
E('th', { 'class': 'th' }, _('SSID')),
E('th', { 'class': 'th', 'width': '45%' }, _('Signal Strength')),
])
]);
- var container_devices_item;
- var container_devices_list = E('table', { 'class': 'table assoclist devices-info' });
-
for (var i =0; i < this.params.wifi.devices.length; i++) {
- container_devices_item = E('tr', { 'class': 'tr cbi-rowstyle-1' });
+ var container_devices_item = E('tr', { 'class': 'tr cbi-rowstyle-1' });
for(var idx in this.params.wifi.devices[i]) {
var device = this.params.wifi.devices[i];
container_devices_item.appendChild(container_content);
}
- container_devices_list.appendChild(container_devices_item);
+ container_devices.appendChild(container_devices_item);
}
- container_devices.appendChild(container_devices_list);
- container_box.appendChild(E('hr'));
container_box.appendChild(container_devices);
- container_box.appendChild(container_devices_list);
container_wapper.appendChild(container_box);
return container_wapper;