mirror of https://github.com/mikaku/Monitorix.git
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:
commit
93672947e0
|
@ -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> $amdgpu->{desc}->{$k}<b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> $amdgpu->{desc}->{$k}</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
}
|
||||
|
|
|
@ -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> <a href='" . $url ."' style='color: " . $colors->{title_fg_color} . "'>$url</a></b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> <a href='" . $url . "'>$url</a></b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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} . "}'> " . trim($url) . "</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> " . trim($url) . "</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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> <a href='" . $l . "' style='color: $colors->{title_fg_color}'>$l</a><b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> <a href='" . $l . "'>$l</a></b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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} . "}'> " . trim($url) . "</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> " . trim($url) . "</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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> $disk->{desc}->{$k}<b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> $disk->{desc}->{$k}</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
}
|
||||
|
|
|
@ -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> <a href='" . $url . "' style='color: " . $colors->{title_fg_color} . "'>$url</a><b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> <a href='" . $url . "'>$url</a></b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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> <a href='" . trim($url) . "' style='color: " . $colors->{title_fg_color} . "'>" . trim($url) . "</a></b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> <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());
|
||||
|
|
|
@ -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} . "}'> " . trim($url) . "</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> " . trim($url) . "</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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} . "}'> $mongo</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> $mongo</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
|
||||
|
|
|
@ -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} . "}'> $uri</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> $uri</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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} . "}'> $host</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> $host</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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} . "}'> " . trim($ups) . "</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> " . trim($ups) . "</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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> $nvidiagpu->{desc}->{$k}<b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> $nvidiagpu->{desc}->{$k}</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
}
|
||||
|
|
|
@ -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> $nvme->{desc}->{$k}<b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> $nvme->{desc}->{$k}</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
}
|
||||
|
|
|
@ -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> <a href='" . $l . "' style='color: $colors->{title_fg_color}'>$l</a><b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> <a href='" . $l . "'>$l</a></b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
14
lib/pgsql.pm
14
lib/pgsql.pm
|
@ -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} . "}'> '$str' database statistics</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> '$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} . "}'> $pg</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> $pg</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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> <a href='" . trim($url) . "' style='color: " . $colors->{title_fg_color} . "'>" . trim($url) . "</a></b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> <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());
|
||||
|
|
|
@ -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> $phpfpm->{group}->{$pfg}<b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> $phpfpm->{group}->{$pfg}</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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} . "}'> " . trim($url) . "</b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> " . trim($url) . "</b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
|
@ -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> <a href='" . trim($url) . "' style='color: " . $colors->{title_fg_color} . "'>" . trim($url) . "</a></b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> <a href='" . trim($url) . "'>" . trim($url) . "</a></b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
}
|
||||
|
|
|
@ -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> Network traffic<b>\n");
|
||||
print(" </font>\n");
|
||||
print(" <td class='td-title' colspan='" . $traffacct->{graphs_per_row} . "'>\n");
|
||||
print(" <b> 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> Network traffic<b>\n");
|
||||
print(" </font>\n");
|
||||
print(" <td class='td-title' colspan='1'>\n");
|
||||
print(" <b> Network traffic</b>\n");
|
||||
print(" </td>\n");
|
||||
print(" </tr>\n");
|
||||
print(" <tr>\n");
|
||||
|
|
|
@ -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> <a href='" . $url . "' style='color: " . $colors->{title_fg_color} . "'>$url</a><b>\n");
|
||||
push(@output, " </font></font>\n");
|
||||
push(@output, " <b> <a href='" . $url . "'>$url</a></b>\n");
|
||||
push(@output, " </font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " </tr>\n");
|
||||
push(@output, main::graph_footer());
|
||||
|
|
Loading…
Reference in New Issue