From bbe5d24accf4f10af1a9a5ae46df10604c1410f5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 21 Apr 2014 10:10:14 +0000 Subject: html/index: fix broken prev/next pagination on short histories We do not have much history in public-inbox meta, so do not mislead users with strange navigation elements which lead nowhere. --- lib/PublicInbox/Feed.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 0f0528c9..4671323c 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -182,6 +182,10 @@ sub each_recent_blob { last; } } + } elsif ($reverse) { + unshift @commits, undef + } else { + push @commits, undef; } close $log; # we may EPIPE here -- cgit v1.2.3-24-ge0c7