]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwStream.pm
wwwtext: support $INBOX_URL/_/text/config/raw
[public-inbox.git] / lib / PublicInbox / WwwStream.pm
index e0823c8d52588f4d4443222571d74e15d03ab189..7399b0ad314dce3ed2adae9e059bdd9fb1488381 100644 (file)
@@ -127,10 +127,15 @@ sub _html_end {
                $addrs
        public-inbox-index $dir
 EOF
+       } else { # v1
+               $urls .= "\n";
        }
+
+       my $cfg_link = ($ctx->{-upfx} // '').'_/text/config/raw';
+       $urls .= qq(\nExample <a\nhref="$cfg_link">config snippet</a> for mirrors\n);
        my @nntp = map { qq(<a\nhref="$_">$_</a>) } @{$ibx->nntp_url};
        if (@nntp) {
-               $urls .= "\n\n";
+               $urls .= "\n";
                $urls .= @nntp == 1 ? 'Newsgroup' : 'Newsgroups are';
                $urls .= ' available over NNTP:';
                $urls .= "\n\t" . join("\n\t", @nntp) . "\n";