From patchwork Tue Dec 26 23:36:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Fischer X-Patchwork-Id: 1586 Return-Path: Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 9E87760D81 for ; Tue, 26 Dec 2017 13:36:29 +0100 (CET) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 85AB5194E; Tue, 26 Dec 2017 13:36:28 +0100 (CET) Received: from Devel.localdomain (p4FDF0C34.dip0.t-ipconnect.de [79.223.12.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 7704F180C for ; Tue, 26 Dec 2017 13:36:25 +0100 (CET) From: Matthias Fischer To: development@lists.ipfire.org Subject: [PATCH] urlfilter.dat: Added Older/Newer links at top of page Date: Tue, 26 Dec 2017 13:36:20 +0100 Message-Id: <20171226123620.2034-1-matthias.fischer@ipfire.org> X-Mailer: git-send-email 2.15.1 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.21 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" Hi, Triggered by: https://forum.ipfire.org/viewtopic.php?f=4&t=19998#p112930 Added 'Older'/'Newer'-links for better page browsing. Best, Matthias Signed-off-by: Matthias Fischer --- html/cgi-bin/logs.cgi/urlfilter.dat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/logs.cgi/urlfilter.dat b/html/cgi-bin/logs.cgi/urlfilter.dat index ce642e1cb..221ed74ac 100644 --- a/html/cgi-bin/logs.cgi/urlfilter.dat +++ b/html/cgi-bin/logs.cgi/urlfilter.dat @@ -304,6 +304,10 @@ if ($cgiparams{'LOGTYPE'} eq 'urlfilter') if ($logsettings{'LOGVIEW_REVERSE'} eq 'on') { @slice = reverse @slice; } +if ($lines != 0) { + +&oldernewer(); + if ($lines) { @@ -369,7 +373,7 @@ if ($lines) print "
\n"; } - +} &oldernewer(); &Header::closebox();