]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www_stream: description header links to top $INBOX_URL
authorEric Wong <e@80x24.org>
Sat, 28 Aug 2021 11:50:07 +0000 (11:50 +0000)
committerEric Wong <e@80x24.org>
Mon, 30 Aug 2021 22:44:13 +0000 (22:44 +0000)
Making the inbox description link back to the most recent
per-inbox topics from text/ and $OID/s/ URLs seems useful,
rather than keeping the description up there.

Followup-to: 6c853f5256f3a324 ("www: improve navigation around contemporary threads")
lib/PublicInbox/WwwStream.pm

index c960edc52fdc545503e9d73ec8444f04c812e62e..472316c29c4ca12531b4b059ac8c9751772322cc 100644 (file)
@@ -49,6 +49,8 @@ sub html_top ($) {
        # we had some kind of query, link to /$INBOX/?t=YYYYMMDDhhmmss
        } elsif ($ctx->{qp}->{t}) {
                $top = qq(<a\nhref="./">$top</a>);
        # we had some kind of query, link to /$INBOX/?t=YYYYMMDDhhmmss
        } elsif ($ctx->{qp}->{t}) {
                $top = qq(<a\nhref="./">$top</a>);
+       } elsif (length($upfx)) {
+               $top = qq(<a\nhref="$upfx">$top</a>);
        }
        my $code = $ibx->{coderepo} ? qq( / <a\nhref=#code>code</a>) : '';
        # id=mirror must exist for legacy bookmarks
        }
        my $code = $ibx->{coderepo} ? qq( / <a\nhref=#code>code</a>) : '';
        # id=mirror must exist for legacy bookmarks