luci-app-mwan3: add i18n to status page
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
4fee871630
commit
2b0fbcb0c8
1 changed files with 5 additions and 5 deletions
|
@ -33,7 +33,7 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface
|
||||||
case 'online':
|
case 'online':
|
||||||
state = '<%:Online%>';
|
state = '<%:Online%>';
|
||||||
time = String.format(
|
time = String.format(
|
||||||
'<div><strong>Uptime: </strong>%s</div>',
|
'<div><strong><%:Uptime%>: </strong>%s</div>',
|
||||||
secondsToString(status.interfaces[iface].online)
|
secondsToString(status.interfaces[iface].online)
|
||||||
);
|
);
|
||||||
css = 'success';
|
css = 'success';
|
||||||
|
@ -41,7 +41,7 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface
|
||||||
case 'offline':
|
case 'offline':
|
||||||
state = '<%:Offline%>';
|
state = '<%:Offline%>';
|
||||||
time = String.format(
|
time = String.format(
|
||||||
'<div><strong>Downtime: </strong>%s</div>',
|
'<div><strong><%:Downtime%>: </strong>%s</div>',
|
||||||
secondsToString(status.interfaces[iface].offline)
|
secondsToString(status.interfaces[iface].offline)
|
||||||
);
|
);
|
||||||
css = 'danger';
|
css = 'danger';
|
||||||
|
@ -50,7 +50,7 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface
|
||||||
state = '<%:No Tracking%>';
|
state = '<%:No Tracking%>';
|
||||||
if ((status.interfaces[iface].uptime) > 0) {
|
if ((status.interfaces[iface].uptime) > 0) {
|
||||||
time = String.format(
|
time = String.format(
|
||||||
'<div><strong>Uptime: </strong>%s</div>',
|
'<div><strong><%:Uptime%>: </strong>%s</div>',
|
||||||
secondsToString(status.interfaces[iface].uptime)
|
secondsToString(status.interfaces[iface].uptime)
|
||||||
);
|
);
|
||||||
css = 'success';
|
css = 'success';
|
||||||
|
@ -71,11 +71,11 @@ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface
|
||||||
css
|
css
|
||||||
);
|
);
|
||||||
statusview += String.format(
|
statusview += String.format(
|
||||||
'<div><strong>Interface: </strong>%s</div>',
|
'<div><strong><%:Interface%>: </strong>%s</div>',
|
||||||
iface
|
iface
|
||||||
);
|
);
|
||||||
statusview += String.format(
|
statusview += String.format(
|
||||||
'<div><strong>Status: </strong>%s</div>',
|
'<div><strong><%:Status%>: </strong>%s</div>',
|
||||||
state
|
state
|
||||||
);
|
);
|
||||||
if (time)
|
if (time)
|
||||||
|
|
Loading…
Reference in a new issue