mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
luci-app-ipsec-server: adapter luci-theme-openwrt-2020 theme (#9021)
This commit is contained in:
parent
0cc907daf4
commit
937e5a4a09
@ -6,14 +6,14 @@
|
|||||||
var ipsec_status = document.getElementsByClassName('ipsec-server_status')[0];
|
var ipsec_status = document.getElementsByClassName('ipsec-server_status')[0];
|
||||||
if (ipsec_status) {
|
if (ipsec_status) {
|
||||||
ipsec_status.setAttribute("style","font-weight:bold;");
|
ipsec_status.setAttribute("style","font-weight:bold;");
|
||||||
ipsec_status.setAttribute("color",result.ipsec_status ? "green":"red");
|
ipsec_status.setAttribute("style",result.ipsec_status ? "color:green":"color:red");
|
||||||
ipsec_status.innerHTML = result.ipsec_status?'<%=translate("RUNNING")%>':'<%=translate("NOT RUNNING")%>';
|
ipsec_status.innerHTML = result.ipsec_status?'<b><%=translate("RUNNING")%></b>':'<b><%=translate("NOT RUNNING")%></b>';
|
||||||
}
|
}
|
||||||
var l2tp_status = document.getElementsByClassName('l2tp_status')[0];
|
var l2tp_status = document.getElementsByClassName('l2tp_status')[0];
|
||||||
if (l2tp_status) {
|
if (l2tp_status) {
|
||||||
l2tp_status.setAttribute("style","font-weight:bold;");
|
l2tp_status.setAttribute("style","font-weight:bold;");
|
||||||
l2tp_status.setAttribute("color",result.l2tp_status ? "green":"red");
|
l2tp_status.setAttribute("style",result.l2tp_status ? "color:green":"color:red");
|
||||||
l2tp_status.innerHTML = result.l2tp_status?'<%=translate("RUNNING")%>':'<%=translate("NOT RUNNING")%>';
|
l2tp_status.innerHTML = result.l2tp_status?'<b><%=translate("RUNNING")%></b>':'<b><%=translate("NOT RUNNING")%></b>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user