luci-app-frpc: fix service status bar style

mod the service status bar to use normaly 'cbi-section' class style.

Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org>
[squash commits, add balnk line between commit subject and message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
ZiMing Mo 2022-04-30 15:55:40 +08:00 committed by Jo-Philipp Wich
parent f63edb787b
commit fbd3a40c3e
2 changed files with 6 additions and 6 deletions

View file

@ -135,7 +135,7 @@ function getServiceStatus() {
function renderStatus(isRunning) {
var renderHTML = "";
var spanTemp = "<span style=\"color:%s;font-weight:bold;margin-left:15px\">%s - %s</span>";
var spanTemp = '<em><span style="color:%s"><strong>%s %s</strong></span></em>';
if (isRunning) {
renderHTML += String.format(spanTemp, 'green', _("frp Client"), _("RUNNING"));
@ -163,8 +163,8 @@ return view.extend({
});
return E('div', { class: 'cbi-map' },
E('div', { class: 'cbi-section'}, [
E('div', { id: 'service_status' },
E('fieldset', { class: 'cbi-section'}, [
E('p', { id: 'service_status' },
_('Collecting data ...'))
])
);

View file

@ -110,7 +110,7 @@ function getServiceStatus() {
function renderStatus(isRunning) {
var renderHTML = "";
var spanTemp = "<span style=\"color:%s;font-weight:bold;margin-left:15px\">%s - %s</span>";
var spanTemp = '<em><span style="color:%s"><strong>%s %s</strong></span></em>';
if (isRunning) {
renderHTML += String.format(spanTemp, 'green', _("frp Server"), _("RUNNING"));
@ -138,8 +138,8 @@ return view.extend({
});
return E('div', { class: 'cbi-map' },
E('div', { class: 'cbi-section'}, [
E('div', { id: 'service_status' },
E('fieldset', { class: 'cbi-section'}, [
E('p', { id: 'service_status' },
_('Collecting data ...'))
])
);