From 809029169e3c80e2b555d9f3ded58d26176d2b96 Mon Sep 17 00:00:00 2001 From: z-eos Date: Thu, 5 Nov 2020 17:59:17 +0200 Subject: [PATCH] css introduced to monitorix file --- monitorix | 64 ++++++++++++++++++++++++++----------------------------- 1 file changed, 30 insertions(+), 34 deletions(-) diff --git a/monitorix b/monitorix index 85c79e3..8322430 100755 --- a/monitorix +++ b/monitorix @@ -24,7 +24,7 @@ require 5.006; use strict; use warnings; use FindBin qw($Bin); -use lib $Bin . "/lib", "/usr/lib/monitorix"; +use lib $Bin . "/lib", "/usr/local/share/monitorix"; use Monitorix; use POSIX qw(WNOHANG LC_TIME setlocale uname pause setsid); @@ -223,51 +223,48 @@ EOF if(!open(OUT, "> $config{base_dir}/index.html")) { die "unable to create '${config{base_dir}}index.html': $!"; } + my $css = sprintf("%scss/monitorix-%s.css", $base_url, $config{theme_color}); print(OUT < $config{title} + - + $piwik_code $when_all_code


- - +
- -
+
+

v@{[VERSION]}

- +
- - - + + + EOF - print(OUT "
- - Hostname  - - - - Graph  - -
+  Hostname  + +  Graph  +
\n"); + print(OUT " \n"); print(OUT " \n"); + print(OUT " \n"); print(OUT "

- +
EOF if(lc($config{enable_hourly_view} || "") eq "y" ) { print(OUT < + EOF } print(OUT < + - - - @@ -472,10 +469,10 @@ EOF print(OUT " \n"); } print(OUT < + EOF @@ -490,7 +487,6 @@ EOF -
+ + +