]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
view: /$INBOX/ links to topics_{new,active}.html
authorEric Wong <e@80x24.org>
Tue, 23 Jan 2024 22:09:00 +0000 (22:09 +0000)
committerEric Wong <e@80x24.org>
Wed, 24 Jan 2024 01:53:51 +0000 (01:53 +0000)
This makes the new endpoints easier-to-find.  The navigation is
still at the bottom of the page since I figured having it at the
top is too cluttered for users on small terminals.

lib/PublicInbox/View.pm

index 9d4262c1ca9e7f58cfc07b85728fde90693d1627..697535ff65f8c1959e738a3ba8084db0b98de0c9 100644 (file)
@@ -1201,7 +1201,11 @@ sub pagination_footer ($$) {
                $next = $next ? "$next | " : '             | ';
                $prev .= qq[ | <a\nhref="$latest">latest</a>];
        }
-       ($next || $prev) ? "<hr><pre id=nav>page: $next$prev</pre>" : '';
+       my $rv = '<hr><pre id=nav>';
+       $rv .= "page: $next$prev\n" if $next || $prev;
+       $rv .= q{- recent:[<b>subjects (threaded)</b>|<a
+href="./topics_new.html">topics (new)</a>|<a
+href="./topics_active.html">topics (active)</a>]</pre>};
 }
 
 sub paginate_recent ($$) {