Merge pull request #405 from bachandi/css_updates

Use the css style instead of title_fg_color and title_bg_color.
This commit is contained in:
Jordi Sanfeliu 2022-02-25 10:28:26 +01:00 committed by GitHub
commit 93672947e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 73 additions and 100 deletions

View File

@ -748,11 +748,10 @@ sub amdgpu_cgi {
if($amdgpu->{desc}->{$k}) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;$amdgpu->{desc}->{$k}<b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;$amdgpu->{desc}->{$k}</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
}

View File

@ -1458,11 +1458,10 @@ sub apache_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $url ."' style='color: " . $colors->{title_fg_color} . "'>$url</a></b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $url . "'>$url</a></b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -1031,11 +1031,10 @@ sub apcupsd_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;" . trim($url) . "</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;" . trim($url) . "</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -1651,11 +1651,10 @@ sub bind_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $l . "' style='color: $colors->{title_fg_color}'>$l</a><b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $l . "'>$l</a></b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -931,11 +931,10 @@ sub chrony_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;" . trim($url) . "</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;" . trim($url) . "</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -933,11 +933,10 @@ sub disk_cgi {
if($disk->{desc}->{$k}) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;$disk->{desc}->{$k}<b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;$disk->{desc}->{$k}</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
}

View File

@ -631,11 +631,10 @@ sub icecast_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $url . "' style='color: " . $colors->{title_fg_color} . "'>$url</a><b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $url . "'>$url</a></b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -639,11 +639,10 @@ sub lighttpd_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . trim($url) . "' style='color: " . $colors->{title_fg_color} . "'>" . trim($url) . "</a></b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . trim($url) . "'>" . trim($url) . "</a></b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -1320,11 +1320,10 @@ sub memcached_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;" . trim($url) . "</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;" . trim($url) . "</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -1390,11 +1390,10 @@ sub mongodb_cgi {
if($title) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;$mongo</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;$mongo</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");

View File

@ -1343,11 +1343,10 @@ sub mysql_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;$uri</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;$uri</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -669,11 +669,10 @@ sub ntp_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;$host</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;$host</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -1045,11 +1045,10 @@ sub nut_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;" . trim($ups) . "</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;" . trim($ups) . "</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -701,11 +701,10 @@ sub nvidiagpu_cgi {
if($nvidiagpu->{desc}->{$k}) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;$nvidiagpu->{desc}->{$k}<b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;$nvidiagpu->{desc}->{$k}</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
}

View File

@ -780,11 +780,10 @@ sub nvme_cgi {
if($nvme->{desc}->{$k}) {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;$nvme->{desc}->{$k}<b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;$nvme->{desc}->{$k}</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
}

View File

@ -1666,11 +1666,10 @@ sub pagespeed_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $l . "' style='color: $colors->{title_fg_color}'>$l</a><b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $l . "'>$l</a></b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -1467,11 +1467,10 @@ sub pgsql_cgi {
push(@output, " <table cellspacing='5' cellpadding='0' width='1' bgcolor='$colors->{graph_bg_color}' border='1'>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;'$str' database statistics</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;'$str' database statistics</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
@ -1993,11 +1992,10 @@ sub pgsql_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;$pg</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;$pg</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -666,11 +666,10 @@ sub phpapc_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . trim($url) . "' style='color: " . $colors->{title_fg_color} . "'>" . trim($url) . "</a></b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . trim($url) . "'>" . trim($url) . "</a></b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -1046,11 +1046,10 @@ sub phpfpm_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;$phpfpm->{group}->{$pfg}<b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;$phpfpm->{group}->{$pfg}</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -1112,11 +1112,10 @@ sub redis_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b style='{color: " . $colors->{title_fg_color} . "}'>&nbsp;&nbsp;" . trim($url) . "</b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;" . trim($url) . "</b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());

View File

@ -667,11 +667,10 @@ sub tinyproxy_cgi {
if(lc($tinyproxy->{show_url}) eq "y") {
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . trim($url) . "' style='color: " . $colors->{title_fg_color} . "'>" . trim($url) . "</a></b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . trim($url) . "'>" . trim($url) . "</a></b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
}

View File

@ -572,10 +572,8 @@ sub traffacct_cgi {
if($cgi->{val} eq "all") {
print(" <table cellspacing='5' cellpadding='0' width='1' bgcolor='$colors->{graph_bg_color}' border='1'>\n");
print(" <tr>\n");
print(" <td bgcolor='$colors->{title_bg_color}' colspan='" . $traffacct->{graphs_per_row} . "'>\n");
print(" <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
print(" <b>&nbsp;&nbsp;Network traffic<b>\n");
print(" </font>\n");
print(" <td class='td-title' colspan='" . $traffacct->{graphs_per_row} . "'>\n");
print(" <b>&nbsp;&nbsp;Network traffic</b>\n");
print(" </td>\n");
print(" </tr>\n");
$n = 0;
@ -686,10 +684,8 @@ sub traffacct_cgi {
if(!$silent) {
print(" <table cellspacing='5' cellpadding='0' width='1' bgcolor='$colors->{graph_bg_color}' border='1'>\n");
print(" <tr>\n");
print(" <td bgcolor='$colors->{title_bg_color}' colspan='1'>\n");
print(" <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
print(" <b>&nbsp;&nbsp;Network traffic<b>\n");
print(" </font>\n");
print(" <td class='td-title' colspan='1'>\n");
print(" <b>&nbsp;&nbsp;Network traffic</b>\n");
print(" </td>\n");
print(" </tr>\n");
print(" <tr>\n");

View File

@ -1114,11 +1114,10 @@ sub wowza_cgi {
push(@output, " </tr>\n");
push(@output, " <tr>\n");
push(@output, " <td bgcolor='$colors->{title_bg_color}' colspan='2'>\n");
push(@output, " <font face='Verdana, sans-serif' color='$colors->{title_fg_color}'>\n");
push(@output, " <td class='td-title' colspan='2'>\n");
push(@output, " <font size='-1'>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $url . "' style='color: " . $colors->{title_fg_color} . "'>$url</a><b>\n");
push(@output, " </font></font>\n");
push(@output, " <b>&nbsp;&nbsp;<a href='" . $url . "'>$url</a></b>\n");
push(@output, " </font>\n");
push(@output, " </td>\n");
push(@output, " </tr>\n");
push(@output, main::graph_footer());