From 4a22b4758023f15f699adac47e9760e3bce42cb9 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Tue, 11 Jun 2024 16:32:06 +0100 Subject: [PATCH] Moved css to own directory --- .../etc/httpd/conf/httpd.conf/100mailstats | 5 + .../opt/mailstats/{html => css}/mailstats.css | 2 +- .../opt/mailstats/templates/mailstats.html.pt | 2 +- root/usr/bin/mailstats.py | 346 ++++++++++-------- root/usr/bin/runmailstats.sh | 2 +- 5 files changed, 200 insertions(+), 157 deletions(-) rename root/opt/mailstats/{html => css}/mailstats.css (99%) diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/100mailstats b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/100mailstats index 800a854..11aa0a3 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/100mailstats +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/100mailstats @@ -1,4 +1,5 @@ # Alias for mailstats + Alias "/mailstats/css" "/opt/mailstats/css" Alias "/mailstats" "/opt/mailstats/html" @@ -7,3 +8,7 @@ Require all granted + + AllowOverride None + Require all granted + diff --git a/root/opt/mailstats/html/mailstats.css b/root/opt/mailstats/css/mailstats.css similarity index 99% rename from root/opt/mailstats/html/mailstats.css rename to root/opt/mailstats/css/mailstats.css index b5403fd..aaf31b4 100644 --- a/root/opt/mailstats/html/mailstats.css +++ b/root/opt/mailstats/css/mailstats.css @@ -42,7 +42,7 @@ a.nextlink { width:33.33333%; text-align:right; }​ - + .cssclass1 {background-color:#ffff99;} .cssclass2 {background-color:lightcoral;} .cssclass3 {background-color:lightcyan;} diff --git a/root/opt/mailstats/templates/mailstats.html.pt b/root/opt/mailstats/templates/mailstats.html.pt index 49d6a77..5dcc6aa 100644 --- a/root/opt/mailstats/templates/mailstats.html.pt +++ b/root/opt/mailstats/templates/mailstats.html.pt @@ -5,7 +5,7 @@ SMEServer Mailstats - +