From e0208fd4977372b4521b6c49e361c621ea1059ff Mon Sep 17 00:00:00 2001 From: z-eos Date: Mon, 9 Nov 2020 18:23:32 +0200 Subject: [PATCH] add class to table/s for modules --- css/black.css | 9 ++++++++- monitorix.cgi | 10 +++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/css/black.css b/css/black.css index 9ad1cca..136c0a2 100644 --- a/css/black.css +++ b/css/black.css @@ -48,7 +48,14 @@ th, td { } .table-module { - background: #cccccc; +// background: #cccccc; + background: #888888; + border: 1px black; + border-left: 1px outset #b2b2b2; + border-top: 1px outset #b2b2b2; + border-right: 1px outset #5b5b5b; + border-bottom: 1px outset #5b5b5b; + border-spacing: 5px; } .td-title { diff --git a/monitorix.cgi b/monitorix.cgi index 37edb9d..c1a9e2b 100755 --- a/monitorix.cgi +++ b/monitorix.cgi @@ -23,7 +23,7 @@ use strict; use warnings; use File::Basename; use FindBin qw($Bin); -use lib $Bin . "/lib", "/usr/lib/monitorix"; +use lib $Bin . "/lib", "/usr/local/share/monitorix"; use Monitorix; use CGI qw(:standard); @@ -96,7 +96,7 @@ sub multihost { if($cgi->{val} eq "all" || $cgi->{val} =~ m/group[0-9]*/) { if($cgi->{graph} eq "all") { - print "\n"; + print "
\n"; my $g = 0; foreach (split(',', $config{graph_name})) { my $gn = trim($_); @@ -130,7 +130,7 @@ sub multihost { print "
\n"; } else { for($n = 0; $n < scalar(@host); $n += $multihost->{graphs_per_row}) { - print "
\n"; + print "
\n"; print " \n"; for($n2 = 0; $n2 < $multihost->{graphs_per_row}; $n2++) { if($n < scalar(@host)) { @@ -174,7 +174,7 @@ sub multihost { if($cgi->{graph} eq "all") { print " \n"; } else { - print "
\n"; + print "
\n"; print " \n"; print "
\n"; print "   " . $host[$cgi->{val}] . "\n"; @@ -205,7 +205,7 @@ sub graph_header { push(@output, "\n"); push(@output, "\n"); - push(@output, " \n"); + push(@output, "
\n"); push(@output, " \n"); push(@output, "
\n"); push(@output, "   $title\n");