From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, T_RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C78CE1F6D4 for ; Sun, 13 Sep 2015 23:35:25 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/4] view: extra Atom feed link in standalone message view Date: Sun, 13 Sep 2015 23:35:19 +0000 Message-Id: <20150913233522.8343-2-e@80x24.org> In-Reply-To: <20150913233522.8343-1-e@80x24.org> References: <20150913233522.8343-1-e@80x24.org> List-Id: It might be helpful if user agents do not display the element in . --- lib/PublicInbox/View.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 7e1fb04..6cb340b 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -544,6 +544,10 @@ sub html_footer { my $srch = $ctx->{srch} if $ctx; my $upfx = $full_pfx ? '../' : '../../'; my $idx = $standalone ? " index" : ''; + + if ($srch && $standalone) { + $idx .= qq{ / follow: Atom feed}; + } if ($idx && $srch) { my ($next, $p) = thread_inline(\$idx, $ctx, $mime, $full_pfx); if (defined $p) { -- EW