From 937e5a4a09a5f26c00a12cd54f84f4366725697b Mon Sep 17 00:00:00 2001
From: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
Date: Tue, 8 Mar 2022 11:21:35 +0800
Subject: [PATCH] luci-app-ipsec-server: adapter luci-theme-openwrt-2020 theme
(#9021)
---
.../luasrc/view/ipsec-server/index.htm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/package/lean/luci-app-ipsec-server/luasrc/view/ipsec-server/index.htm b/package/lean/luci-app-ipsec-server/luasrc/view/ipsec-server/index.htm
index 93e36a405..607e5ff35 100644
--- a/package/lean/luci-app-ipsec-server/luasrc/view/ipsec-server/index.htm
+++ b/package/lean/luci-app-ipsec-server/luasrc/view/ipsec-server/index.htm
@@ -6,14 +6,14 @@
var ipsec_status = document.getElementsByClassName('ipsec-server_status')[0];
if (ipsec_status) {
ipsec_status.setAttribute("style","font-weight:bold;");
- ipsec_status.setAttribute("color",result.ipsec_status ? "green":"red");
- ipsec_status.innerHTML = result.ipsec_status?'<%=translate("RUNNING")%>':'<%=translate("NOT RUNNING")%>';
+ ipsec_status.setAttribute("style",result.ipsec_status ? "color:green":"color:red");
+ ipsec_status.innerHTML = result.ipsec_status?'<%=translate("RUNNING")%>':'<%=translate("NOT RUNNING")%>';
}
var l2tp_status = document.getElementsByClassName('l2tp_status')[0];
if (l2tp_status) {
l2tp_status.setAttribute("style","font-weight:bold;");
- l2tp_status.setAttribute("color",result.l2tp_status ? "green":"red");
- l2tp_status.innerHTML = result.l2tp_status?'<%=translate("RUNNING")%>':'<%=translate("NOT RUNNING")%>';
+ l2tp_status.setAttribute("style",result.l2tp_status ? "color:green":"color:red");
+ l2tp_status.innerHTML = result.l2tp_status?'<%=translate("RUNNING")%>':'<%=translate("NOT RUNNING")%>';
}
}
)