case 'online':
state = '<%:Online%>';
time = String.format(
- '<div><strong>Uptime: </strong>%s</div>',
+ '<div><strong><%:Uptime%>: </strong>%s</div>',
secondsToString(status.interfaces[iface].online)
);
css = 'success';
case 'offline':
state = '<%:Offline%>';
time = String.format(
- '<div><strong>Downtime: </strong>%s</div>',
+ '<div><strong><%:Downtime%>: </strong>%s</div>',
secondsToString(status.interfaces[iface].offline)
);
css = 'danger';
state = '<%:No Tracking%>';
if ((status.interfaces[iface].uptime) > 0) {
time = String.format(
- '<div><strong>Uptime: </strong>%s</div>',
+ '<div><strong><%:Uptime%>: </strong>%s</div>',
secondsToString(status.interfaces[iface].uptime)
);
css = 'success';
css
);
statusview += String.format(
- '<div><strong>Interface: </strong>%s</div>',
+ '<div><strong><%:Interface%>: </strong>%s</div>',
iface
);
statusview += String.format(
- '<div><strong>Status: </strong>%s</div>',
+ '<div><strong><%:Status%>: </strong>%s</div>',
state
);
if (time)