From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id F22241F8C8 for ; Sat, 28 Aug 2021 11:50:07 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/2] www_stream: description header links to top $INBOX_URL Date: Sat, 28 Aug 2021 11:50:07 +0000 Message-Id: <20210828115007.9197-3-e@80x24.org> In-Reply-To: <20210828115007.9197-1-e@80x24.org> References: <20210828115007.9197-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm index c960edc5..472316c2 100644 --- a/lib/PublicInbox/WwwStream.pm +++ b/lib/PublicInbox/WwwStream.pm @@ -49,6 +49,8 @@ sub html_top ($) { # we had some kind of query, link to /$INBOX/?t=YYYYMMDDhhmmss } elsif ($ctx->{qp}->{t}) { $top = qq($top); + } elsif (length($upfx)) { + $top = qq($top); } my $code = $ibx->{coderepo} ? qq( / code) : ''; # id=mirror must exist for legacy bookmarks