diff options
author | Eric Wong <e@yhbt.net> | 2020-08-27 22:05:00 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-28 04:25:33 +0000 |
commit | 68f9da93b11412122fff6e6154a42ecabcdbada0 (patch) | |
tree | 99f95ae77972012558b24f56aa06ed57a3a22222 /lib/PublicInbox/View.pm | |
parent | 6c853f5256f3a324c018a37a9e8a6b9fc8fdc063 (diff) | |
download | public-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/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 9c3ef104..3055da20 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -1175,9 +1175,9 @@ sub pagination_footer ($$) { my ($ctx, $latest) = @_; my $next = $ctx->{next_page} || ''; my $prev = $ctx->{prev_page} || ''; - if ($prev) { - $next = $next ? "$next " : ' '; - $prev .= qq! <a\nhref='$latest'>latest</a>!; + if ($prev) { # aligned padding for: 'next (older) | ' + $next = $next ? "$next | " : ' | '; + $prev .= qq[ | <a\nhref="$latest">latest</a>]; } "<hr><pre>page: $next$prev</pre>"; } @@ -1215,11 +1215,13 @@ sub paginate_recent ($$) { } if (defined($oldest) && $more) { my $s = ts2str($oldest); - $ctx->{next_page} = qq!<a\nhref="?t=$s"\nrel=next>next</a>!; + $ctx->{next_page} = qq[<a\nhref="?t=$s"\nrel=next>] . + 'next (older)</a>'; } if (defined($newest) && (defined($before) || defined($after))) { my $s = ts2str($newest); - $ctx->{prev_page} = qq!<a\nhref="?t=$s-"\nrel=prev>prev</a>!; + $ctx->{prev_page} = qq[<a\nhref="?t=$s-"\nrel=prev>] . + 'prev (newer)</a>'; } $msgs; } |