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>
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"));
});
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 ...'))
])
);
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"));
});
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 ...'))
])
);