1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Add label in interfaces list

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-07-17 15:48:29 +02:00
parent 2caf10d7f2
commit f1072bb2fb

View file

@ -76,6 +76,7 @@ function render_status(node, ifc, with_device) {
macaddr = maindev ? maindev.getMAC() : null;
return L.itemlist(node, [
_('Label'), ifc.get('label'),
_('Protocol'), with_device ? null : (desc || '?'),
_('Device'), with_device ? (maindev ? maindev.getShortName() : E('em', _('Not present'))) : null,
_('Uptime'), (!changecount && ifc.isUp()) ? '%t'.format(ifc.getUptime()) : null,