From patchwork Thu Mar 16 10:34:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 6700 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PckCF6zMfz3x2l for ; Thu, 16 Mar 2023 10:34:17 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PckCC4s9Yz3nW; Thu, 16 Mar 2023 10:34:15 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PckCC2x4Yz2yvT; Thu, 16 Mar 2023 10:34:15 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PckCB5pPHz2xct for ; Thu, 16 Mar 2023 10:34:14 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4PckC9530Szx5; Thu, 16 Mar 2023 10:34:13 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1678962853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=k3wRrurGzoaB8J+Etn89MRewD5nO6nAIAgmc8NTEMUI=; b=p1SSeVLVosjZQZfHlN6AA89KZf7Vr6qlJAW5OsJTfy2cDTJFWvmT+v5/fIK4Z5N9N+hgzy IEvHsZFPF7o3nwAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1678962853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=k3wRrurGzoaB8J+Etn89MRewD5nO6nAIAgmc8NTEMUI=; b=CSoVso6F95M7jwmMdhWrDSZiHzbGqz7GRYNunlixL0PGSNyfumYAgD3Kug8zwPsThxsTRP LFSwSyZ6Ib00nAoL+mXpNK3Z+XQen1ZCi3wAAF6uOuzMxTV7hwCynwwDiEpUu4Zj/wMPf6 reGGz/mN5nmTkPP9i1Aw/5Ub4Q6X/hgTzgXxqCSKTK/0Lg2pOE4tX2Uhm0s/BIo/PaLKof D7jrTi0qQpWmV8xMS735XOOmyd8t7jEKivbexajnvHXFfcIubB/2QvdAdLV8WJaQj+133V SZIMMxGIdmGGA7AnjLCo1czs8e6a24enOUTyGWtVPOHeyKEmIJrF4YThp0kf6w== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] header.pl: Add reference to colors.txt into header.pl Date: Thu, 16 Mar 2023 11:34:03 +0100 Message-Id: <20230316103403.3761-1-adolf.belka@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - With change of common css entries into header.pl with commit https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=b52a84ddc77f9db7e4ad7b129f21fbf528c6f990 I had missed that color20 and color22 etc, that come from colors.txt, are not known in header.pl so that the alternate colours in tables were missing. Even though I tested the previous commit I obviously did not look well enough because I missed that the tables had no alternate colours. I just found it now when looking at Core Update 174 Testing. - Confirmed by copying this version of header.pl into my CU174 Testing system and the alternate colour rows came back again as they should be. I am sure now that they are correct. Tested-by: Adolf Belka Signed-off-by: Adolf Belka Reviewed-by: Bernhard Bitsch Tested-by: Bernhard Bitsch --- config/cfgroot/header.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/cfgroot/header.pl b/config/cfgroot/header.pl index 955ed2646..3f80ce9b4 100644 --- a/config/cfgroot/header.pl +++ b/config/cfgroot/header.pl @@ -17,6 +17,9 @@ use HTML::Entities(); use Socket; use Time::Local; +our %color = (); +&General::readhash("/srv/web/ipfire/html/themes/ipfire/include/colors.txt", \%color); + $|=1; # line buffering $Header::revision = 'final';