From: Eric Wong Date: Mon, 21 Apr 2014 10:10:14 +0000 (+0000) Subject: html/index: fix broken prev/next pagination on short histories X-Git-Tag: v1.0.0~1217 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=bbe5d24accf4f10af1a9a5ae46df10604c1410f5 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. --- 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