about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-27 22:05:00 +0000
committerEric Wong <e@yhbt.net>2020-08-28 04:25:33 +0000
commit68f9da93b11412122fff6e6154a42ecabcdbada0 (patch)
tree99f95ae77972012558b24f56aa06ed57a3a22222 /lib/PublicInbox/Feed.pm
parent6c853f5256f3a324c018a37a9e8a6b9fc8fdc063 (diff)
downloadpublic-inbox-68f9da93b11412122fff6e6154a42ecabcdbada0.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm5
1 files changed, 4 insertions, 1 deletions
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[<a\nhref="?r=$last_commit"\nrel=next>] .
+                                        'next (older)</a>';
+
         [ map { bless {blob => $_ }, 'PublicInbox::Smsg' } @oids ];
 }