]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www_listing: add note about mirroring information
authorEric Wong <e@80x24.org>
Mon, 30 Aug 2021 23:44:54 +0000 (23:44 +0000)
committerEric Wong <e@80x24.org>
Tue, 31 Aug 2021 11:25:16 +0000 (11:25 +0000)
Perhaps this can be expanded to include grokmirror information
in the future.  For now, just give a hint about the "mirror"
link for each inbox.

lib/PublicInbox/WwwListing.pm

index c37796195e681441106c5e6218041ecbacdae2b5..a9290802397eb40d0f0d4df9beb43a098299f901 100644 (file)
@@ -226,7 +226,10 @@ sub psgi_triple {
        } else {
                $gzf->zmore('<pre>no inboxes, yet');
        }
-       my $out = $gzf->zflush('</pre></body></html>');
+       my $out = $gzf->zflush('</pre><hr><pre>'.
+qq(This is a listing of public inboxes, see the `mirror' link of each inbox
+for instructions on how to mirror all the data and code on this site.) .
+                       '</pre></body></html>');
        $h->[3] = length($out);
        [ $code, $h, [ $out ] ];
 }