From 82fec28abe35877513fa553747b697c158db2b95 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 10 Apr 2024 17:34:28 +0200 Subject: [PATCH 01/34] header.pl: Allow passing more HTTP headers to showhttpheaders() Signed-off-by: Michael Tremer --- config/cfgroot/header.pl | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/config/cfgroot/header.pl b/config/cfgroot/header.pl index 5164e9731..99ec7a6bf 100644 --- a/config/cfgroot/header.pl +++ b/config/cfgroot/header.pl @@ -232,10 +232,24 @@ sub genmenu { } } -sub showhttpheaders -{ - print "Cache-control: private\n"; - print "Content-type: text/html; charset=UTF-8\n\n"; +sub showhttpheaders($) { + my $overwrites = shift; + + my %headers = ( + "Content-Type" => "text/html; charset=UTF-8", + "Cache-Control" => "private", + + # Overwrite anything passed + %$overwrites, + ); + + # Print all headers + foreach my $header (keys %headers) { + print "$header: $headers{$header}\n"; + } + + # End headers + print "\n"; } sub is_menu_visible($) { From d9de11aff847b505e186e2e56ece5905e3d2b7d0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 9 Apr 2024 19:23:18 +0200 Subject: [PATCH 02/34] CSS: Don't make headings so skinny Signed-off-by: Michael Tremer --- html/html/themes/ipfire/include/css/style.css | 3 --- 1 file changed, 3 deletions(-) diff --git a/html/html/themes/ipfire/include/css/style.css b/html/html/themes/ipfire/include/css/style.css index 7cf85d68d..a91b9d8b4 100644 --- a/html/html/themes/ipfire/include/css/style.css +++ b/html/html/themes/ipfire/include/css/style.css @@ -80,9 +80,6 @@ body { h1, h2, h3, h4, h5, h6 { font-size: 20px; - font-weight: normal; - letter-spacing: -1px; - text-align: left; } br.clear { From 17c29ce7fefe36be09d05e42a8b50d10e7ca5d17 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 19 Mar 2024 18:02:17 +0100 Subject: [PATCH 03/34] CSS: Make all