public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] urlfilter.dat: Added Older/Newer links at top of page
@ 2017-12-26 12:36 Matthias Fischer
  0 siblings, 0 replies; only message in thread
From: Matthias Fischer @ 2017-12-26 12:36 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

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 <matthias.fischer(a)ipfire.org>
---
 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 "</table><br>\n";
 
 }
-
+}
 &oldernewer();
 
 &Header::closebox();
-- 
2.15.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-26 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-26 12:36 [PATCH] urlfilter.dat: Added Older/Newer links at top of page Matthias Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox