From 68f9da93b11412122fff6e6154a42ecabcdbada0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 27 Aug 2020 22:05:00 +0000 Subject: www: more descriptive pagination Being an easily confused person, I find "next" and "prev" ambiguous as to whether messages on the next or previous page will be newer or older than the current page. Clarify that for the threaded /$INBOX/ view and search results. For search results sorted by relevance, we'll use "[>= $SCORE]" or "[<= $SCORE]" to indicate to indicate directionality. This also fixes $INBOX/new.html for unindexed v1 inboxes. --- lib/PublicInbox/Feed.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/Feed.pm') diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index bf095a2c..cbdf5db9 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -133,7 +133,10 @@ sub recent_msgs { } } - $ctx->{next_page} = "r=$last_commit" if $last_commit; + $last_commit and + $ctx->{next_page} = qq[] . + 'next (older)'; + [ map { bless {blob => $_ }, 'PublicInbox::Smsg' } @oids ]; } -- cgit v1.2.3-24-ge0c7